dengste / org-caldav

Caldav sync for Emacs orgmode
GNU General Public License v3.0
718 stars 105 forks source link

WARNING: 1 duplicate IDs found #210

Open haji-ali opened 4 years ago

haji-ali commented 4 years ago

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 7qv2vpc1e0drg3snpva8mh8rjd@google.com.

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

* Test
:PROPERTIES:
:ID:       7qv2vpc1e0drg3snpva8mh8rjd@google.com
:END:
<2020-05-18 Mon 11:00-12:00>

Moreover, the temporary file shows the same event

BEGIN:VEVENT
DTSTAMP:20200516T222343Z
UID:7qv2vpc1e0drg3snpva8mh8rjd@google.com
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?

svictor9 commented 4 years ago

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.

haji-ali commented 4 years ago

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: REDACTED-ID@google.com
   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 REDACTED-ID@google.com.

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

fleimgruber commented 3 years ago

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

fleimgruber commented 3 years ago

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