M365 Issue MacOS Client

After initial setup and working for some time I get this error when syncing my M365 Account:

[Microsoft Graph] Die Synchronisation der Ordnerliste ist fehlgeschlagen mit folgendem Fehler: Arg_NullReferenceException

eM Client 11.0.1054+70b028aea4 (MAC)

22:22:42 XXXXXXX [Microsoft Graph] MailClient.Storage.Application.OperationException: Die Synchronisation der Ordnerliste ist fehlgeschlagen mit folgendem Fehler: Arg_NullReferenceException 
          ---> System.NullReferenceException: Arg_NullReferenceException
            at MailClient.Protocols.MSGraph.MSGraphFolderSynchronizer.GetMailFolderListAsync(CancellationToken cancellationToken)
            at MailClient.Protocols.MSGraph.MSGraphFolderSynchronizer.GetFolderListAsync(IListFoldersProgress progress, CancellationToken cancellationToken)
            at MailClient.Protocols.MSGraph.MSGraphFolderSynchronizer.GetFolderList(IListFoldersProgress progress, Folder homeFolder, CancellationToken cancellationToken)
            at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass21_0.<RunEnqueueGetFolderList>b__0(WorkerStatus status, CancellationToken cancellationToken)
            at MailClient.Protocols.MSGraph.GenericMSGraphCommand.Execute(WorkerStatus status)
            Exception_EndOfInnerExceptionStack
            at MailClient.Protocols.MSGraph.GenericMSGraphCommand.Execute(WorkerStatus status)
            at MailClient.Commands.Command.Process(WorkerStatus status)
         --- End of stack trace from previous location ---
            at MailClient.Storage.Synchronization.FolderSynchronizerExtensions.SynchronizeSubfoldersAsync(IFolderSynchronizer synchronizer, Folder folder, SynchronizationPriority priority, CancellationToken cancellationToken)
            at MailClient.Protocols.MSGraph.MSGraphAccount.SynchronizeIntAsync(Boolean forced)
            at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass30_0.<<SynchronizeAsync>b__0>d.MoveNext()
           AccountId = null
           AccountName = null
           RunInPlace = False
           GUIStatus_Exception_Reported = True
22:22:42 Beschaffung, Betrieb & Digitalisierung [Microsoft Graph] MailClient.Accounts.AuthenticationAbortedException: Authentifizierung abgebrochen
            at MailClient.Protocols.MSGraph.GenericMSGraphCommand.Execute(WorkerStatus status)
            at MailClient.Commands.Command.Process(WorkerStatus status)
           RunInPlace = False
           GUIStatus_Exception_Reported = True

Can’t reproduce this anymore. Perhaps a short M365 outage?

Hi, thanks for the report and the full error text, which is useful. Glad to hear it hasn’t come back.

Your guess may well be right. In the same second as the folder list error (22:22:42), the log also shows “Authentifizierung abgebrochen” (authentication aborted) for the account. That points to the sign-in to Microsoft 365 failing for a moment.

You’re already on the latest version (11.0.1054), so there’s no update to install right now.

If it happens again:

  1. Restart eM Client and check whether the account syncs normally.
  2. If the error comes back, go to Tools > Operations > Log, click Copy log and post it here. You can hide your email address and account name.
  3. Let us know your macOS version, roughly how often the error appears, and whether a Microsoft sign-in window showed up around that time.