3 messages in com.googlegroups.google-base-data-apiRe: You must select a type of item an...
FromSent OnAttachments
N Owens04 Apr 2008 13:46 
Jeff S04 Apr 2008 14:06 
Nick Owens07 Apr 2008 08:37 
Subject:Re: You must select a type of item and other errors
From:Nick Owens (nico@gmail.com)
Date:04/07/2008 08:37:55 AM
List:com.googlegroups.google-base-data-api

Jeff:

This is precisely the answer I needed. I had no idea the XML format was different b/w the feed and the API. I just incorrectly assumed that the formats you accepted would be universal, regardless of means of data transport. I assumed such b/c it's the way I would've designed the system, primarily to encourage developers to move toward a real-time HTTP transfer from an asynchronous FTP feed without as much of a re-write.

Thanks again for the answer. I believe that if I re-write my test code w/ the XML format information I found on the API pages, I'll have much better luck. I'm just proving a proof of concept at this point but I'll be moving the code into production shortly as I'm sure this is a feasible intrgration w/ our business model.

- Nick On Fri, Apr 4, 2008 at 5:06 PM, Jeff S <j.@google.com> wrote:

Hi N Owens,

Part of the problem may be that the XML you are looking at is not designed to be sent using the Google Base Data API, but is designed for uploading XML files (there are several ways that you can send your items to Google Base). For a good example of working example XML which can be used with the API, see the interactive demo page:

http://www.google.com/base/api/demo/html/demo.html

You can also find documentation for the API here:

http://code.google.com/apis/base/starting-out.html

If there are things which are unclear or missing from the docs, please let me know, as I'd really like for these to be a good resource for you.

Happy coding,

On Apr 4, 1:46 pm, N Owens <nico@gmail.com> wrote:

I receive the following response from the Google Server:

<errors> <error type="data" field="item" reason="You must select a type of item." /> <error type="data" field="item" reason="A title is required." /> </errors>

I am at wit's end trying to find out the problem w/ my XML.

I finally posted the XML data directly from:

http://base.google.com/base/vehicles-atom.xml

Exact same errors. So I assume it's not my XML that is the problem.

Google can't even provide XML examples that can pass their error- validation-happy server. How are any of us supposed to do it w/ limited doecumentation and zero support? ;)