Full error from the Office 365 Client log:2020-12-02 17:28:12Z| 2156| 15|ERROR| Execute|Unable to process command Office365CollectMailboxes: System.AggregateException: One or more errors occurred. ---> System.ApplicationException: Error reading JToken from JsonReader. Path '', line 0, position 0.
at MigrationManager.Module.Office365.Office365PsBase.ProcessPowerShellErrors(PSDataCollection`1 errors, Boolean throwException)
at MigrationManager.Module.Office365.Office365PsBase.ExecuteCommand(RunspacePool runspacePool, Func`1 getCommandFunction, Boolean throwException)
at MigrationManager.Module.Office365.Office365MailboxCollector.
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at MigrationManager.Module.Office365.Office365MailboxCollector.GetMailboxes(Guid commandGuid, Guid linkId, MailboxType mailboxType)
at MigrationManager.Module.Office365.Office365MailboxCollector.ExecuteInternal(ModuleCommand command)
at MigrationManager.Module.Office365.Office365PsBase.Execute(ModuleCommand command)
---> (Inner Exception #0) System.ApplicationException: Error reading JToken from JsonReader. Path '', line 0, position 0.
at MigrationManager.Module.Office365.Office365PsBase.ProcessPowerShellErrors(PSDataCollection`1 errors, Boolean throwException)
at MigrationManager.Module.Office365.Office365PsBase.ExecuteCommand(RunspacePool runspacePool, Func`1 getCommandFunction, Boolean throwException)
at MigrationManager.Module.Office365.Office365MailboxCollector.
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute() (Inner Exception #1) QUADROtech.PowerShell.PsException: Connecting to remote server outlook.office365.com failed with the following error message : The WinRM client received an HTTP status code of 403 from the remote WS-Management service. For more information, see the about_Remote_Troubleshooting Help topic. ---> System.Management.Automation.Remoting.PSRemotingTransportException: Connecting to remote server outlook.office365.com failed with the following error message : The WinRM client received an HTTP status code of 403 from the remote WS-Management service. For more information, see the about_Remote_Troubleshooting Help topic.
at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.EndOpen(IAsyncResult asyncResult)
at QUADROtech.PowerShell.PowerShellWrapper.CreateAndOpenRunspacePool()
at QUADROtech.PowerShell.PowerShellWrapper.get_RunspacePool()
at QUADROtech.PowerShell.PowerShellWrapper.ExecutePsCommand(PSCommandBase command, Boolean throwExceptionOnError, Int32 retryCount)
--- End of inner exception stack trace ---
at QUADROtech.PowerShell.PowerShellWrapper.ExecutePsCommand(PSCommandBase command, Boolean throwExceptionOnError, Int32 retryCount)
at QUADROtech.PowerShell.PowerShellWrapper.ExecutePsCommand(PSCommandBase command, Boolean throwExceptionOnError, Int32 retryCount)
This specific error is caused by the internet proxy configuration being used in environment by the service account used on the Bridgehead Server.
To resolve issue, it’s necessary to update internet proxy rule for the source/target and all traffic over port 443 from the Bridgehead Server to the internet endpoint outlook.office365.com to be allowed.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center