[Bug] Synchronize calendar error: the calendar doesn't contain a timezone

emClient

[Google Calendar] Synchronizing folder ‘…’ failed due to the following error: The calendar doesn’t contain a timezone ‘TZID=Asia/Famagusta’ referenced from its components.

Blockquote
3:22:20 PM RIA [Google Calendar] MailClient.Storage.Application.OperationException: Synchronizing folder ‘RIA/Calendar’ failed due to the following error: The calendar doesn’t contain a timezone ‘TZID=Asia/Famagusta’ referenced from its components.
3:22:20 PM —> System.FormatException: The calendar doesn’t contain a timezone ‘TZID=Asia/Famagusta’ referenced from its components.
3:22:20 PM at MailClient.Schedule.ScheduleConvert.GetTimeZone(TimeZone timeZone, Property dtProperty)
3:22:20 PM at MailClient.Schedule.ScheduleConvert.UpdateRecurrence(IScheduleObject scheduleObject, Calendar calendar, ScheduleComponent updatingComponent)
3:22:20 PM at MailClient.Protocols.Gdata.EventConvert.ConvertEvent(Folder folder, Event evnt, TimeZoneInfo defaultTimezone)
3:22:20 PM at MailClient.Protocols.Gdata.CalendarItemSynchronizer.EventsToItems(Folder folder, IEnumerable1 events, String defaultTimezoneName)+MoveNext() 3:22:20 PM at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) 3:22:20 PM at System.Collections.Generic.List1.AddRange(IEnumerable1 collection) 3:22:20 PM at MailClient.Protocols.Common.ItemSynchronizeContext2.<>c__DisplayClass18_03.<Synchronize>g__FlushItems|1(Int32 threshold) 3:22:20 PM at MailClient.Protocols.Common.ItemSynchronizeContext2.Synchronize[T,TUid,TVid](SynchronizationType synchronizationType, IEnumerable1 items, Func2 getUniqueId, Func2 getVersionId, Func3 hasChanged, Func2 isDeleted, Func2 convertItems, Action2 updateItem) 3:22:20 PM at MailClient.Protocols.Gdata.CalendarItemSynchronizer.Synchronize(IItemSynchronizeContext1 synchronizeContext, Folder folder, CancellationToken cancellationToken)
3:22:20 PM at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass36_0.b__6(WorkerStatus status, CancellationToken ct)
3:22:20 PM at MailClient.Protocols.Gdata.GenericGapiCommand.Execute(WorkerStatus status)
3:22:20 PM — End of inner exception stack trace —

How do I fix this?

Thanks,
Daniel

Hey Daniel,

I feel your pain, I’ve gone through the same thing, find here some instructions:

Sorry it took so long to respond.
This is a NullReferenceException, something unhandled in the code.

10:41:26.491|024|
> Exception: MailClient.Storage.Application.OperationException: Synchronizing folder ‘hidden@XXXXXXXXXXXXX/Calendar’ failed due to the following error: Object reference not set to an instance of an object.

 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at MailClient.Storage.Application.Schedule.ScheduleItemCollection`1.repository_AddedItems(Object sender, ItemEventArgs`1 e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at MailClient.Storage.Data.DbRepository`1.OnAddedItems(Object sender, ItemEventArgs`1 args)
   at MailClient.Storage.Data.DbRepository`1.Add[ST](Object senderContext, IEnumerable`1 items)
   at MailClient.Storage.Attachment.Data.ItemWithAttachmentRepositoryAdapter`1.Add[ST](Object senderContext, IEnumerable`1 items)
   at MailClient.Storage.Application.ItemCollection`2.AddRange(IEnumerable`1 items, CancellationToken cancellationToken)
   at MailClient.Storage.Application.ItemCollection`2.AddRange(IEnumerable`1 items)
   at MailClient.Protocols.Common.ItemSynchronizeContext`2.StoreItems[TUid,TVid](SynchronizationType synchronizationType, IEnumerable`1 newItems, Dictionary`2 uniqueIdToVersionId, Dictionary`2 uniqueIdToOid)
   at MailClient.Protocols.Common.ScheduleItemSynchronizeContext`1.StoreItems[TUid,TVid](SynchronizationType synchronizationType, IEnumerable`1 newItems, Dictionary`2 uniqueIdToVersionId, Dictionary`2 uniqueIdToOid)
   at MailClient.Protocols.Common.ItemSynchronizeContext`2.<>c__DisplayClass18_0`3.<Synchronize>g__FlushItems|1(Int32 threshold)
   at MailClient.Protocols.Common.ItemSynchronizeContext`2.Synchronize[T,TUid,TVid](SynchronizationType synchronizationType, IEnumerable`1 items, Func`2 getUniqueId, Func`2 getVersionId, Func`3 hasChanged, Func`2 isDeleted, Func`2 convertItems, Action`2 updateItem)
   at MailClient.Protocols.Gdata.CalendarItemSynchronizer.Synchronize(IItemSynchronizeContext`1 synchronizeContext, Folder folder, CancellationToken cancellationToken)
   at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass37_1.<EnqueueSynchronize>b__6(WorkerStatus status, CancellationToken ct)
   at MailClient.Protocols.Gdata.GenericGapiCommand.Execute(WorkerStatus status)
   --- End of inner exception stack trace ---
   at MailClient.Protocols.Gdata.GenericGapiCommand.Execute(WorkerStatus status)
   at MailClient.Commands.Command.Process(WorkerStatus status)
AccountBase.ChangeOnlineState : STATE CHANGE TO offline due BrokenConnection

EnqueuedStackTrace =
at MailClient.Protocols.Common.ItemSynchronizer2.<>c__DisplayClass37_1.<EnqueueSynchronize>g__RunSynchronize|2() at MailClient.Protocols.Common.ItemSynchronizer2.<>c__DisplayClass37_0.b__0()
at MailClient.Protocols.Common.AccountBase.RunIfOnline(Action actionIfOnline, Action actionIfOffline)
at MailClient.Protocols.Common.ItemSynchronizer2.EnqueueSynchronize(Folder folder, Boolean fast, CancellationToken cancellationToken, Action1 completed)
at MailClient.Protocols.Common.ItemSynchronizer2.MailClient.Storage.Synchronization.IItemSynchronizer<TStorageItem>.Synchronize(Folder folder, SynchronizationPriority priority, Action1 completed)
at MailClient.Storage.Application.ItemCollection2.Synchronize(SynchronizationPriority priority, Action1 completed)
at MailClient.Storage.Application.Folder.Synchronize(SynchronizationPriority priority)
at MailClient.Protocols.Gdata.GdataCalendarAccount.<>c__DisplayClass21_0.b__1(CompletionEventArgs e)
at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass15_1.b__0(CompletionEventArgs e)
at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass15_2.b__2(CompletionEventArgs completionEventArgs)
at MailClient.Protocols.Common.RequestIssuer.<>c__DisplayClass9_0.b__0(Object sender, CompletionEventArgs e)
at MailClient.Commands.Command.Complete()
at MailClient.Commands.Command.Process(WorkerStatus status)
at MailClient.Commands.SynchronizationQueue.ThreadWorker(Object threadData)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)

Thanks for the program update and fo fixing this, guys, I got my calendar working once again.
Much appreciated!

Reopenning, issue has reoccured.
Guys, I can’t get my google calendar to sync.
I’m a developer myself, and I’m posting the full stack trace, and issue is still not resolved.
This is the last chance before I give up on your product.

10:26:27 AM [email protected] [Google Calendar] MailClient.Storage.Application.OperationException: Synchronizing folder '[email protected]/Calendar' failed due to the following error: Object reference not set to an instance of an object.
        ---> System.NullReferenceException: Object reference not set to an instance of an object.
          at MailClient.Storage.Application.Schedule.ScheduleItemCollection`1.repository_AddedItems(Object sender, ItemEventArgs`1 e)
          at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
          at MailClient.Storage.Data.DbRepository`1.OnAddedItems(Object sender, ItemEventArgs`1 args)
          at MailClient.Storage.Data.DbRepository`1.Add[ST](Object senderContext, IEnumerable`1 items)
          at MailClient.Storage.Attachment.Data.ItemWithAttachmentRepositoryAdapter`1.Add[ST](Object senderContext, IEnumerable`1 items)
          at MailClient.Storage.Application.ItemCollection`2.AddRange(IEnumerable`1 items, CancellationToken cancellationToken)
          at MailClient.Storage.Application.ItemCollection`2.AddRange(IEnumerable`1 items)
          at MailClient.Protocols.Common.ItemSynchronizeContext`2.StoreItems[TUid,TVid](SynchronizationType synchronizationType, IEnumerable`1 newItems, Dictionary`2 uniqueIdToVersionId, Dictionary`2 uniqueIdToOid)
          at MailClient.Protocols.Common.ScheduleItemSynchronizeContext`1.StoreItems[TUid,TVid](SynchronizationType synchronizationType, IEnumerable`1 newItems, Dictionary`2 uniqueIdToVersionId, Dictionary`2 uniqueIdToOid)
          at MailClient.Protocols.Common.ItemSynchronizeContext`2.<>c__DisplayClass18_0`3.<Synchronize>g__FlushItems|1(Int32 threshold)
          at MailClient.Protocols.Common.ItemSynchronizeContext`2.Synchronize[T,TUid,TVid](SynchronizationType synchronizationType, IEnumerable`1 items, Func`2 getUniqueId, Func`2 getVersionId, Func`3 hasChanged, Func`2 isDeleted, Func`2 convertItems, Action`2 updateItem)
          at MailClient.Protocols.Gdata.CalendarItemSynchronizer.Synchronize(IItemSynchronizeContext`1 synchronizeContext, Folder folder, CancellationToken cancellationToken)
          at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass37_1.<EnqueueSynchronize>b__6(WorkerStatus status, CancellationToken ct)
          at MailClient.Protocols.Gdata.GenericGapiCommand.Execute(WorkerStatus status)
          --- End of inner exception stack trace ---
          at MailClient.Protocols.Gdata.GenericGapiCommand.Execute(WorkerStatus status)
          at MailClient.Commands.Command.Process(WorkerStatus status)
         EnqueuedStackTrace =
              at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass37_1.<EnqueueSynchronize>g__RunSynchronize|2()
              at MailClient.Protocols.Common.ItemSynchronizer`2.<>c__DisplayClass37_0.<EnqueueSynchronize>b__0()
              at MailClient.Protocols.Common.AccountBase.RunIfOnline(Action actionIfOnline, Action actionIfOffline)
              at MailClient.Protocols.Common.ItemSynchronizer`2.EnqueueSynchronize(Folder folder, Boolean fast, CancellationToken cancellationToken, Action`1 completed)
              at MailClient.Protocols.Common.ItemSynchronizer`2.MailClient.Storage.Synchronization.IItemSynchronizer<TStorageItem>.Synchronize(Folder folder, SynchronizationPriority priority, Action`1 completed)
              at MailClient.Storage.Application.ItemCollection`2.Synchronize(SynchronizationPriority priority, Action`1 completed)
              at MailClient.Storage.Application.Folder.Synchronize(SynchronizationPriority priority)
              at MailClient.Protocols.Gdata.GdataCalendarAccount.<>c__DisplayClass20_0.<Synchronize>b__1(CompletionEventArgs e)
              at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass14_1.<EnqueueGetFolderList>b__1(CompletionEventArgs completionEventArgs)
              at MailClient.Protocols.Common.RequestIssuer.<>c__DisplayClass9_0.<RunRequest>b__0(Object sender, CompletionEventArgs e)
              at MailClient.Commands.Command.Complete()
              at MailClient.Commands.Command.Process(WorkerStatus status)
              at MailClient.Commands.SynchronizationQueue.ThreadWorker(Object threadData)
              at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
              at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
              at System.Threading.ThreadHelper.ThreadStart(Object obj)

As a Pro License user, it would be better for you to open a support ticket directly with eM Client.

I don’t have a Pro License and at this point, with calendar not working, I’m not even considering one.
This is a major flaw in the app, and should be fixed, for pro or not-pro users.
I would pay Pro for unique features that no one has, not as a donation for maybe getting a bug fixed, while the bug has been reported and open for almost a year.

If you are using eM Client with your work email account beyond the 30 day evaluation period, you need to purchase a Pro License or remove the application from your computer.

Thank you. Removed the application.