AnsweredAssumed Answered

Office365 - unhandled exception

Question asked by Viktors Advocate on May 29, 2018
Latest reply on Jun 19, 2018 by marcel.hirsch

Hi,

 

Our customer has a problem with Office365 service - it stops every time.

There is a handled error  in the Office365Service log:

...

2018-05-29 09:13:22,474 [3] INFO SnowSoftware.LicenseManager.Office365.ViewModelBuilders.SubscriptionPlanViewModelBuilder [(null)] - Finished creation of subscription plan viewmodel in 152 ms
2018-05-29 09:13:28,772 [12] INFO SnowSoftware.LicenseManager.Office365.EventHandlers.UsersNotLinked.UsersNotLinkedProjectionWriter [(null)] - Saved changes in 257 ms
2018-05-29 09:13:29,788 [14] INFO SnowSoftware.LicenseManager.Office365.ViewModelBuilders.UserHistoryViewModelBuilder [(null)] - Finished creation of viewmodel in 234 ms
2018-05-29 09:13:32,788 [4] FATAL Topshelf.Runtime.Windows.WindowsServiceHost [(null)] - The service threw an unhandled exception
System.NullReferenceException: Object reference not set to an instance of an object.
at SnowSoftware.LicenseManager.Office365.Data.Repositories.EntityFramework.EfUserActivityRepository.ConnectUserToLicenseManagerUser(Int32 cid, Guid aggregateId, Int32 licenseManagerId, String consolidationMatchingRule)
at SnowSoftware.LicenseManager.Office365.EventHandlers.UserAccounts.UserActivityProjectionWriter.<>c__DisplayClass16_0.<Dispatcher>b__3(UserActivityProjectionData data)
at SnowSoftware.LicenseManager.ReadModel.BaseProjectionWriter`2.ApplyChanges()
at SnowSoftware.LicenseManager.Office365.EventHandlers.UserAccounts.UserActivityProjectionWriter.<SaveAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SnowSoftware.LicenseManager.Office365.EventHandlers.UserAccounts.UserActivityProjectionWriter.<<Dispatcher>b__16_9>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

 

Tested on SIM 5.8.0 and 5.8.1 vesions. Data in SLM displays correctly.

Any suggestions?

 

Regards,

Viktors

Outcomes