Hi Portal,

Put the add into a try -- catch ..
(this is C#):




            string strErrMessage = "OK";

            try
            {
                GBaseEntry myEntry = _service.Insert(
                   GBaseUriFactory.Default.ItemsFeedUri, _entry);

                // Othe code removed

                myEntry = null;
            }
            catch (GDataRequestException ex)
            {
                strErrMessage = ex.ResponseString;
                return;
            }



the strErrMessage will explain the reasons for the
rejection, formatted rather funky, but it will help.


Regards
G.,


On Mar 9, 11:25 am, portal <[email protected]> wrote:
> But I've tested with the google example code and the error is the
> same.
>
> Dim service As GBaseService = New GBaseService("Google-Tutorial-1.0",
> Parametros.DeveloperKey)
>         Service.setUserCredentials(Parametros.UserName,
> Parametros.PassWord)
>
>         Dim entry As GBaseEntry = New GBaseEntry()
>         entry.Title.Text = "My House"
>         entry.Content.Content = "The best house of the area."
>         entry.GBaseAttributes.ItemType = "test"
>         entry.GBaseAttributes.AddTextAttribute("my attribute",
> "hello")
>         entry.GBaseAttributes.AddFloatAttribute("bathrooms", 2.0F)
>         entry.GBaseAttributes.AddFloatAttribute("rooms", 6.5F)
>         entry.GBaseAttributes.AddFloatAttribute("bedrooms", 2.0F)
>         entry.GBaseAttributes.Location = "1900 Snow Cone Avenue, North
> Pole"
>
>         Dim myEntry As GBaseEntry = service.Insert
> (GBaseUriFactory.Default.ItemsFeedUri, entry)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to