It's a feature:

http://code.google.com/apis/gdata/docs/1.0/reference.html#Optimistic-concurrency

I'm guessing when you delete the photos this changes the version string on
the album and so the entry is out of date. If you re-fetch the album entry
and then delete it, it should work. This will actually be easier to do once
PWA supports V2 since you can specify If-None-Match: * for the Etag.

Cheers,
-Jeff

On Wed, Feb 18, 2009 at 4:06 PM, Chewy81 <[email protected]> wrote:

>
> I have an album with 3 photos in it.  I first delete all of the photos
> in the album, and then delete the album itself.  I get this error
> every time and the album does not delete:
>
> Error deleting album: Google.GData.Client.GDataRequestException:
> Execution of request failed:
> http://picasaweb.google.com/data/entry/api/user/USERNAME/albumid/LONGSTRING
> ---> System.Net.WebException: The remote server returned an error:
> (409) Conflict.
>
> I have tried waiting 10 minutes to see if that was the problem, but it
> always throws this error.
>
> The only way I can make it work is by restarting my application (.net
> windows app).
>
> Here is the code I am using:
>
> myService.Delete(myAlbums[i].Entry);
>
> also tried myAlbums[i].Entry.Delete();.
>
> I have also dumped myAlbums[i].Entry.FeedUri.ToString() and it looks
> normal to me (on both calls).
>
> Any ideas?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums 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-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to