aluxnimm / outlookcaldavsynchronizer

Sync Outlook with Google, SOGo, Nextcloud or any other CalDAV/CardDAV server
GNU Affero General Public License v3.0
899 stars 95 forks source link

Sync calendar exception since Version 4.4.1 NullReferenceException get_IsAllDay() #394

Open dylancollaud opened 1 year ago

dylancollaud commented 1 year ago

Hi, Since last version we got some exceptions (All same) linked apparently to privat event in calendar

System.NullReferenceException: Object reference not set to an instance of an object. at DDay.iCal.Event.get_IsAllDay() at CalDavSynchronizer.Implementation.Events.EventEntityMapper.Map2To1(IEvent source, IReadOnlyCollection1 recurrenceExceptionsOrNull, IAppointmentItemWrapper targetWrapper, Boolean isRecurrenceException, IEntitySynchronizationLogger logger, IEventSynchronizationContext context) at CalDavSynchronizer.Implementation.Events.EventEntityMapper.Map2To1(IICalendar sourceCalendar, IAppointmentItemWrapper target, IEntitySynchronizationLogger logger, IEventSynchronizationContext context) at GenSync.Synchronization.States.UpdateBToA7.d6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at GenSync.Synchronization.States.UpdateBToA`7.JobWrapper.d13.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CalDavSynchronizer.Implementation.Events.OutlookEventRepository.d23.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at GenSync.EntityRepositories.BatchEntityRepositoryAdapter`4.d3.MoveNext()

We sync with Infomaniak system in Switzerland. Maybe the error come from them.

The exception seems to be "NullReferenceException".

Thank you for your help.

aluxnimm commented 1 year ago

Can you post the ics file of the event in the sync report that causes this error?

dylancollaud commented 1 year ago

I don't know if this is this file you need :

34adb592-268f-48c8-9924-800d4af57ddf20230502172342010.log

This file was in AppData/Local/CalDavSynchronizer/xxx

aluxnimm commented 1 year ago

In this sync report there should be a link to server id and there you can download the raw data of that event, /calendars/JC05088/bff3257e-239f-47cb-bbc1-1cb1ca40bccd/8b6cf2dd-f159-477c-994e-811ddfeeff53.ics

dylancollaud commented 1 year ago

Here you can find the file :

8b6cf2dd-f159-477c-994e-811ddfeeff53.txt

I change the extension to .txt but this is my .ics. (Github don't accept this extension)