org-caldav icon indicating copy to clipboard operation
org-caldav copied to clipboard

WARNING: 1 duplicate IDs found

Open haji-ali opened this issue 5 years ago • 4 comments

I am trying out org-caldav on a sample google calendar with a single event. After setting everything up and calling org-caldav-sync I get the warning

Warning (emacs): WARNING: 1 duplicate IDs found, check *Messages* buffer

in Messages I see

Contacting host: apidata.googleusercontent.com:443
Duplicate ID "275c7768-0c4c-4bb8-9425-c28abb03d5c0"
2 files scanned, 2 files contains IDs and in total 44 IDs found.
progn: Could not find UID [email protected].

However, my single event in the calendar is in my org file and the UID is there

* Test
:PROPERTIES:
:ID:       [email protected]
:END:
<2020-05-18 Mon 11:00-12:00>

Moreover, the temporary file shows the same event

BEGIN:VEVENT
DTSTAMP:20200516T222343Z
UID:[email protected]
DTSTART;TZID=Europe/London:20200518T110000
DTEND;TZID=Europe/London:20200518T120000
SUMMARY:Test
DESCRIPTION:<2020-05-18 Mon 11:00>–<2020-05-18 Mon 12:00>
CATEGORIES:caldav
END:VEVENT

Is there a way to troubleshoot this?

haji-ali avatar May 16 '20 22:05 haji-ali

Did you save your test file after running org-caldav-sync? It doesn't save the file by itself, so you must do it manually If you don't, org-caldav won't see the UID on its next run, which could explain the error.

svictor9 avatar May 23 '20 20:05 svictor9

I did save the file after running org-caldav-sync. Even the first time I run org-caldav-sync I get

CalDAV Sync finished.

== Sync errors: 

None.

== Successful syncs: 

UID: [email protected]
   Title: (Could not find UID)
   Status: new-in-cal  Action: cal->org

Then, after saving the file, the next run of org-caldav-sync gives

progn: Could not find UID [email protected].

Another run of org-caldav-sync given a confirmation to continue an aborted sync and the cycle repeats.

haji-ali avatar May 23 '20 22:05 haji-ali

@haji-ali I see the same error and subsequent behaviour. Were you able to solve this?

fleimgruber avatar Jun 28 '21 19:06 fleimgruber

See also https://github.com/dengste/org-caldav/issues/230.

fleimgruber avatar Jun 28 '21 19:06 fleimgruber