When trying to manually switch a user he following error is seen in the Switch wizard and repeated in the EmwMigration log
System.Exception: An error occurred during authentication. Please try signing in again. If the problem persists, contact Support
2018-10-24 13:27:25.3131 Px1F00 Tx10 A- C- M- Trace Adam connection props: Server- 'ADAM_Server', Port - '389', Partition- 'CN=QMMO365', Account - 'AdamDomain\ServiceAccount'.
2018-10-24 13:27:27.9537 Px1F00 Tx10 A- C- M- Error System.Exception: An error occurred during authentication. Please try signing in again. If the problem persists, contact Support.
When switching to Office 365 the following stack trace can bee seen under the error:
2020-01-29 13:44:36.8842 Px2268 Tx12 A- C- M- Error System.Exception: An error occurred during authentication. Please try signing in again. If the problem persists, contact Support.
at DirectoryMigration.IDMObjectPair.Switch()
at MigrationManagerForExchange.Shared.Switching.O365SwitcherAndMatcher.Switch(Guid sourceGuid)
at MigrationManager.Exchange.O365ProvisioningWebService.O365ProvisioningProxy.<>c__DisplayClass6_0.<Switch>b__0()
at MigrationManager.Exchange.O365ProvisioningWebService.O365ProvisioningProxy.InvokeTryCatchAction(Action act) at MigrationManager.Exchange.O365UserProvisioning.O365UserProvisioning.CheckAndThrow[T](Func`1 func)
at MigrationManager.Exchange.O365UserProvisioning.O365UserProvisioning.Switch(Int32 mailboxId, Int32 collectionId, Boolean rollbackSwitchOnFail, ExchangeProtocol srcMbxProtoPreference)
2020-01-29 13:44:36.8842 Px2268 Tx12 A- C- M- Error MigrationManager.Exchange.O365UserProvisioning.SwitchException: Failed to Switch user. | at MigrationManager.Exchange.O365UserProvisioning.O365UserProvisioning.Switch(Int32 mailboxId, Int32 collectionId, Boolean rollbackSwitchOnFail, ExchangeProtocol srcMbxProtoPreference)
at MigrationManagerForExchange.API.O365DoSwitch.O365UserProvisioningSwitch(Int32 mailboxID, Int32 collectionID)
at MigrationManagerForExchange.API.O365DoSwitch.SwitchUnswitch(Boolean isSwitch, Int32 mailboxID, Int32 collectionID)
at MigrationManagerForExchange.API.O365DoSwitch.Switch(Int32 mailboxID, Int32 collectionID)
at MigrationManager.Exchange.COM.Controls.Commands.SwitchCommandHolder.DoO365Switch(Int32 mailboxID, Int32 collectionID)
at MigrationManager.Exchange.COM.Controls.Commands.SwitchCommandHolder.<ExecuteInternal>b__19_1(DoActionHandlerViewItem item, Object[] arg)
[inner] System.Exception: An error occurred during authentication. Please try signing in again. If the problem persists, contact Support. | at DirectoryMigration.IDMObjectPair.Switch()
at MigrationManagerForExchange.Shared.Switching.O365SwitcherAndMatcher.Switch(Guid sourceGuid)
at MigrationManager.Exchange.O365ProvisioningWebService.O365ProvisioningProxy.<>c__DisplayClass6_0.<Switch>b__0()
at MigrationManager.Exchange.O365ProvisioningWebService.O365ProvisioningProxy.InvokeTryCatchAction(Action act) at MigrationManager.Exchange.O365UserProvisioning.O365UserProvisioning.CheckAndThrow[T](Func`1 func)
at MigrationManager.Exchange.O365UserProvisioning.O365UserProvisioning.Switch(Int32 mailboxId, Int32 collectionId, Boolean rollbackSwitchOnFail, ExchangeProtocol srcMbxProtoPreference)
2020-01-29 13:44:36.8842 Px2268 Tx12 A- C- M- Info OnComplete:Failed to Switch user. An error occurred during authentication. Please try signing in again. If the problem persists, contact Support.