8 messages in com.googlegroups.google-base-data-apiRe: Unable to Insert data
FromSent OnAttachments
Pooja Mehta15 Apr 2007 21:15 
Jeff S17 Apr 2007 17:20 
pooj...@gmail.com18 Apr 2007 21:30 
Jeff S19 Apr 2007 22:46 
pooj...@gmail.com24 Apr 2007 01:22 
Jeff S27 Apr 2007 10:19 
pooj...@gmail.com04 May 2007 22:33 
Jeff S08 May 2007 15:42 
Subject:Re: Unable to Insert data
From:Jeff S (j.@google.com)
Date:04/19/2007 10:46:47 PM
List:com.googlegroups.google-base-data-api

Thank you Pooja,

I think that the problem is the item type which you are using with your item. Google Base doesn't allow items of type "test" and this item looks like it could be housing instead. I'm guessing that you just want to test insertion, which you can do by setting the dry run flag in your insert request. Your item will not actually be created but Google Base will send a response as if it was. You'll need to add "?dry-run=true" to the end of the ItemsFeedUri to make this a test insert. Please let me know if it helps.

Happy coding,

Jeff

On Apr 19, 4:31 am, "pooj@gmail.com" <pooj@gmail.com> wrote:

Hi,

I am using sample code given for inserting data.

GBaseService service = new GBaseService("Google-Tutorial-1.0", developerKey); service.setUserCredentials(username, password)

GBaseEntry entry = new GBaseEntry(); entry.Title.Text = "My House"; entry.Content.Content = "The best house of the area."; entry.GBaseAttributes.Ite mType = "test"; entry.GBaseAttributes.AddTextAttribute("my attribute", "hello"); entry.GBaseAttributes.AddFloatAttribute("bathrooms", 2f); entry.GBaseAttributes.AddFloatAttribute("rooms", 6.5f); entry.GBaseAttributes.AddFloatAttribute("bedrooms", 2f); entry.GBaseAttributes.Location = "1900 Snow Cone Avenue, North Pole";

----------------------------------------------------------------------------------------------------------- GBaseEntry myEntry = service.Insert(GBaseUriFactory.Default.ItemsFeedUri, entry);

Here it is giving error. Execution of request
failed:http://www.google.com/base/feeds/items

----------------------------------------------------------------------------------------------------------

I am using my gmail username and password; and developerKey for Installed applications .

Thank You,

Pooja

On Apr 18, 5:20 am, Jeff S <j.@google.com> wrote:

Hello Pooja,

I'd be happy to help, what was the entry that you were trying to post?

Thank you,

Jeff

On Apr 15, 9:16 pm, "Pooja Mehta" <pooj@gmail.com> wrote:

---------- Forwarded message ---------- From: Pooja Mehta <pooj@gmail.com> Date: Apr 14, 2007 12:58 PM Subject: Unable to Insert data To: Goog@googlegroups.com

Hi,

I am trying to upload data using api. It is giving me error as

Execution of request failed:http://www.google.com/base/feeds/items

on execution of command

GBaseEntry myEntry =

service.Insert( GBaseUriFactory.Default.ItemsFeedUri, entry);

Please help me.

Thanks,

Pooja- Hide quoted text -

- Show quoted text -