3

Caldav error in decoding data: System.Exception: Start after End

Hi, I am getting the following system exception when trying to sync with my NextCloud calendar. I am not sure if this is a bug with OneCalendar or if the site really sends wrong data.

The effect could have been caused by moving (by dragging) a calendar entry to another day/time. The move went visually ok but when I opened the moved entry, it still showed the old date/time, if I remember correctly. The following sync showed the error, and this is now happening with every sync operation.

Caldav error in decoding data

Action: ReceiveCalendar
Calendar: Default calendar

Dav.Client.DavException: Caldav error in decoding data ---> System.Exception: Start after End
at CalDav.iCalendar.Event.Deserialize (System.IO.TextReader rdr, CalDav.iCalendar.Serializer serializer) <0x7f75e04a14 + 0x00b80> in <571133b5f7ac4cabaf6f48a85f2d27a6>:0
at CalDav.iCalendar.Calendar.Deserialize (System.IO.TextReader rdr, CalDav.iCalendar.Serializer serializer) <0x7f75e0089c + 0x0028f> in <571133b5f7ac4cabaf6f48a85f2d27a6>:0
at CalDav.iCalendar.CalendarCollection.Deserialize (System.IO.TextReader rdr, CalDav.iCalendar.Serializer serializer) <0x7f75e00e9c + 0x0009b> in <571133b5f7ac4cabaf6f48a85f2d27a6>:0
at CalDav.iCalendar.Serializer.Deserialize[T] (System.IO.TextReader rdr) <0x7f75e0624c + 0x0006f> in <571133b5f7ac4cabaf6f48a85f2d27a6>:0
at Dav.Client.CalDav.CalDavServerCalendar+d__18.MoveNext () [0x00178] in :0
--- End of inner exception stack trace ---
at Dav.Client.CalDav.CalDavServerCalendar+d__18.MoveNext () [0x0024b] in :0
--- End of stack trace from previous location where exception was thrown ---
at XCalendarApp.CalDavBaseProvider.CalDavBaseAccount+d__10.MoveNext () [0x000bc] in <8d04e69a065d48acb6148d9c9a046be7>:0
--- End of stack trace from previous location where exception was thrown ---
at XCalendarApp.CalDavBaseProvider.CalDavBaseAccount+d__9.MoveNext () [0x0020f] in <8d04e69a065d48acb6148d9c9a046be7>:0
--- End of stack trace from previous location where exception was thrown ---
at XCalendarApp.ProviderBase.AccountProviderBase`8+d__94[TCachedCalendar,TProviderCalendarItem,TCachedAppointment,TProviderAppointmentItem,TCachedContacts,TCachedContact,TProviderContactItem,TAppointmentDbData].MoveNext () [0x0011f] in <2bec7e4302554b18b00b0a6049a9defb>:0
ObjectData:
/nextcloud/remote.php/dav/calendars/wernke/defaultcalendar/5e647167-63f2-4014-b757-d40b53211a61.ics


BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20190926T195030Z
LAST-MODIFIED:20190926T195045Z
DTSTAMP:20190926T195045Z
UID:5e647167-63f2-4014-b757-d40b53211a61
RDATE;VALUE=DATE-TIME:20191001T070000Z
DTSTART;TZID=Europe/Berlin:20191001T090000
DTEND;TZID=Europe/Berlin:20190915T090000
X-MOZ-FAKED-MASTER:1
X-MOZ-GENERATION:1
END:VEVENT
BEGIN:VEVENT
CREATED:20190926T195013Z
LAST-MODIFIED:20190926T195045Z
DTSTAMP:20190926T195045Z
UID:5e647167-63f2-4014-b757-d40b53211a61
SUMMARY:Yoga
RECURRENCE-ID;TZID=Europe/Berlin:20191001T090000
DTSTART;TZID=Europe/Berlin:20191001T173000
DTEND;TZID=Europe/Berlin:20191001T190000
SEQUENCE:4
X-MOZ-GENERATION:3
END:VEVENT
END:VCALENDAR


HTTP/1.1 200 OK



Inner exception: System.Exception: Start after End
at CalDav.iCalendar.Event.Deserialize (System.IO.TextReader rdr, CalDav.iCalendar.Serializer serializer) <0x7f75e04a14 + 0x00b80> in <571133b5f7ac4cabaf6f48a85f2d27a6>:0
at CalDav.iCalendar.Calendar.Deserialize (System.IO.TextReader rdr, CalDav.iCalendar.Serializer serializer) <0x7f75e0089c + 0x0028f> in <571133b5f7ac4cabaf6f48a85f2d27a6>:0
at CalDav.iCalendar.CalendarCollection.Deserialize (System.IO.TextReader rdr, CalDav.iCalendar.Serializer serializer) <0x7f75e00e9c + 0x0009b> in <571133b5f7ac4cabaf6f48a85f2d27a6>:0
at CalDav.iCalendar.Serializer.Deserialize[T] (System.IO.TextReader rdr) <0x7f75e0624c + 0x0006f> in
<571133b5f7ac4cabaf6f48a85f2d27a6>:0
at Dav.Client.CalDav.CalDavServerCalendar+d__18.MoveNext () [0x00178] in :0

2 replies

JR

HiĀ 

I too have the same problem, with an I Cloud calendar, any ideas - Support ??

Cheers Jon

O

There was a bad calendar entry as correctly reported in the error message:

UID:5e647167-63f2-4014-b757-d40b53211a61
DTSTART;TZID=Europe/Berlin:20191001T090000
DTEND;TZID=Europe/Berlin:20190915T090000

Fixed by manually deleting this entry from the Nextcloud database, in my case:

DELETE FROM `oc_calendarobjects` WHERE `oc_calendarobjects`.`uid` LIKE '5e647167%'

For me it is solved but it would be good if such bad entries could simply be ignored with a warning. Other calendar apps are able to cope with it.