Issue
The Office 365 user synchronization task is responsible for collecting the information about users Online primary & archive mailboxes (size, free space, licensed). There are a few issues that can occur that will prevent the successful running of the task.
This KB lists those known issues and gives hints on how to solve them.
Solution
1) Ingest credentials are missing
You can identify this issue by seeing the following exception in  “FlightDeck core.log” file:

2017-07-28 07:33:02Z|INFO|P:3492|T:42|Office365PsBase`1|Getting Mailboxes mailboxtype :[Primary]
2017-07-28 07:33:02Z|ERROR|P:3492|T:42|ServiceCredentialStorage|
File with service accounts is not present! [C:\Users\SA.L2-EV11-01\AppData\Local\QUADROtech\FlightDeck\Office365ServiceAccounts.dat]
2017-07-28 07:33:02Z|ERROR|P:3492|T:42|Office365PsBase`1|
Unable to process o365 user connection: System.ApplicationException: No office 365 credential defined. Aborting.
at vcare.PstMigrator.Office365.FactoryBase`1.GetCredential()
at vcare.PstMigrator.Office365.FactoryBase`1.Create()
at vcare.PstMigrator.Office365.Office365MailboxCollector.GetMailboxes(MailboxType mailboxType)
at vcare.PstMigrator.Office365.Office365MailboxCollector.ExecuteInternal()
at vcare.PstMigrator.Office365.Office365PsBase`1.Execute()

Here is the KB article about adding the ingest credential: https://info.quadrotech-it.com/knowledge-base/adding-changing-of-the-credentials-for-o365-ingest-account/

2) Invalid ingest credentials
You can identify this issue by seeing the following exception in  “FlightDeck core.log” file:

2017-07-28 09:44:57Z|ERROR|P:3492|T:16|Office365PsBase`1| Unable to process o365 user connection: QUADROtech.PowerShell.PsException: Connecting to remote server outlook.office365.com failed with the following error message : [ClientAccessServer=AM3PR05CA0136,BackEndServer=,RequestId=054992ba-18f7-46cc-a3b7-832d422ca127,TimeStamp=7/28/2017 9:44:57 AM] [FailureCategory=LiveID-InvalidCreds] Access Denied 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 : [ClientAccessServer=AM3PR05CA0136,BackEndServer=,RequestId=054992ba-18f7-46cc-a3b7-832d422ca127,TimeStamp=7/28/2017 9:44:57 AM] [FailureCategory=LiveID-InvalidCreds] Access Denied For more information, see the about_Remote_Troubleshooting Help topic.
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)


Here is the KB article about adding the ingest credential: https://info.quadrotech-it.com/knowledge-base/adding-changing-of-the-credentials-for-o365-ingest-account/

3) Azure Active Directory Module for Windows PowerShell is not installed
You can identify this issue by seeing the following exception in  “FlightDeck core.log” file:

Exception: 2017-07-25 12:46:59Z|TRACE|P:16660|T:22|MsolRunspacePoolFactory|System.Management.Automation.CommandNotFoundException: The term 'Connect-MsolService' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
   at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
   at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
   at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
   at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
   at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
   at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
   at vcare.PstMigrator.Office365.MsolRunspacePoolFactory.CreateInternal(NetworkCredential networkCredential)

Install the Azure Active Directory Module for Windows PowerShell on the computer (if it isn’t already installed). To install the Azure Active Directory Module for Windows PowerShell, go here.
If the MSOnline module isn’t present, use Windows PowerShell to import the MSOnline module.
a. Run following command in powershell:

Import-Module MSOnline
b. To check if the MSOnline is install use following command in powershell:
Get-Module -ListAvailable -Name MSOnline*

4) Ingest account doesn’t have sufficient permissions.
You can identify this issue by seeing the following exception in  “FlightDeck core.log” file:

EXCEPTION: System.Management.Automation.RemoteException: A parameter cannot be found that matches parameter name 'Archive'.
 at System.Management.Automation.PowerShell.CoreInvokeRemoteHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
 at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
 at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)
 at QUADROtech.PowerShell.PowerShellWrapper.ExecutePsCommand(PSCommandBase command, Boolean throwExceptionOnError, Int32 retryCount)
 at vcare.PstMigrator.Office365.Office365MailboxCollector.GetMailboxes(MailboxType mailboxType)
 at vcare.PstMigrator.Office365.Office365MailboxCollector.ExecuteInternal()
 at vcare.PstMigrator.Office365.Office365PsBase`1.Execute()

a. Following KB article shows which permission needs to be applied:  https://info.quadrotech-it.com/knowledge-base/minimum-permissions-required-for-migration-to-office-365/
b. The permissions need to be applied for the first ingest account in the credential editor:
https://info.quadrotech-it.com/knowledge-base/adding-changing-of-the-credentials-for-o365-ingest-account/

Print Friendly, PDF & Email