The only thing different with what I'm doing is that I add
BatchUtils.declareEntryExtensions(service.getExtensionProfile());
(Hm, I see I'm doing it for each item which doesn't make sense, since
there is not (obvious) per entry association!)
On Sep 26, 1:43 pm, beeky <[EMAIL PROTECTED]> wrote:
> I put together a command line app to read item ids from a file and
> send a batch of delete requests. The file of ids was created by a
> similar app that does a batch insert and writes the ids to a file when
> an insert is successful.
>
> while (( line = idLog.readLine()) != null){
> GoogleBaseEntry gentry = new GoogleBaseEntry() ;
> gentry.setId ( line );
> BatchUtils.setBatchOperationType(gentry, BatchOperationType.DELETE );
> feed.addEntry(gentry);
>
> }
>
> GoogleBaseFeed result =
> service.batch(FeedURLFactory.getDefault().getItemsBatchFeedURL(),feed);
>
> BatchUtils.isSuccess() is true for all of the GoogleBaseEntry objects
> in result but the items are not deleted.
>
> What am I missing? This seems like the most simple of batch
> operations.
>
> -=beeky
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---