MAgE (Migration Agent for Exchange) fails to switch mailboxes with the following error:
Error System.Runtime.InteropServices.COMException (0x80004005): An existing connection was forcibly closed by the remote host
at DirectoryMigration.IDMObjectPair.Switch()
at Dell.MigrationManagerForExchange.Shared.Switching.O365SwitcherAndMatcher.Switch(Guid sourceGuid)
at Quest.MigrationManager.Exchange.O365ProvisioningWebService.O365ProvisioningProxy.<>c__DisplayClass2_0.<Switch>b__0()
at Quest.MigrationManager.Exchange.O365ProvisioningWebService.O365ProvisioningProxy.InvokeTryCatchAction(Action act) at Quest.MigrationManager.Exchange.O365UserProvisioning.O365UserProvisioning.CheckAndThrow(Func`1 exceptionFunc)
at Quest.MigrationManager.Exchange.O365UserProvisioning.O365UserProvisioning.Switch(Int32 mailboxId, Int32 collectionId, Boolean rollbackSwitchOnFail, ExchangeProtocol srcMbxProtoPreference)
Trace Quest.MigrationManager.Exchange.Agent.Jobs.JobExceptionNotFatalSwitchFail`1[Quest.MigrationManager.Exchange.Agent.Jobs.O365Job]: Switch failed | at Quest.MigrationManager.Exchange.Agent.Jobs.O365Job.RunJobHandleException(Exception ex, JobReportBase report)
[inner] Quest.MigrationManager.Exchange.O365UserProvisioning.SwitchException: Failed to Switch user. | at Quest.MigrationManager.Exchange.O365UserProvisioning.O365UserProvisioning.Switch(Int32 mailboxId, Int32 collectionId, Boolean rollbackSwitchOnFail, ExchangeProtocol srcMbxProtoPreference)
at Quest.MigrationManager.Exchange.Agent.Jobs.O365Job.Switch()
at Quest.MigrationManager.Exchange.Agent.Jobs.O365Job.SwitchAndSetTimeStamp()
at Quest.MigrationManager.Exchange.Agent.Jobs.O365Job.CheckAndTrySwitchInternal()
[inner] System.Runtime.InteropServices.COMException: An existing connection was forcibly closed by the remote host | at DirectoryMigration.IDMObjectPair.Switch()
at Dell.MigrationManagerForExchange.Shared.Switching.O365SwitcherAndMatcher.Switch(Guid sourceGuid)
at Quest.MigrationManager.Exchange.O365ProvisioningWebService.O365ProvisioningProxy.<>c__DisplayClass2_0.<Switch>b__0()
at Quest.MigrationManager.Exchange.O365ProvisioningWebService.O365ProvisioningProxy.InvokeTryCatchAction(Action act) at Quest.MigrationManager.Exchange.O365UserProvisioning.O365UserProvisioning.CheckAndThrow(Func`1 exceptionFunc)
at Quest.MigrationManager.Exchange.O365UserProvisioning.O365UserProvisioning.Switch(Int32 mailboxId, Int32 collectionId, Boolean rollbackSwitchOnFail, ExchangeProtocol srcMbxProtoPreference)