Hi everyone.

Let me expalin my situation. I copy events from one calendar to
another. When i delete event from destination calendar and when try to
copy it from source once again i receive "The event with given ID
already exists".

I use Python, Data API 2.0.

Simply my code looks like:


request_feed = gdata.calendar.data.CalendarEventFeed()
feed = calendar_client.GetCalendarEventFeed()
for an_event in feed.entry:
  new_event = copy(an_event)
  new_event.id = None
  #author changes
  #acl
  request_feed.AddInsert(entry=new_event)
  ...
response_feed = calendar_client.ExecuteBatch(request_feed,
gdata.calendar.client.DEFAULT_BATCH_URL)


First run was successful, all following on each event return "The
event with given ID already exists."

I want to create exact the same event on destination account so i
copied it with copy() to not miss any option. After deleting
destination account doesn't have any event. But if i try to copy it
one more time it doesn't create any of previously existed events from
that source.

It seems that i need to get rid of data in some fields that prevents
me from doing it or something like that.

Can you give me a hint how can i accomplish it?

Thanks in advance

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar 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://code.google.com/apis/calendar/community/forum.html

Reply via email to