Migration Manager for Exchange

Mailbox undo switch error

I am getting the below error when I am trying to undo switch of mailboxes. I am getting this for all mailbox sync jobs involving different source Exchange orgs. Autodiscover is working as expected and I have also tried to set the Autodiscover URL in set-organizationproperties in QMMEX POwershell.

Autodiscover Request failed for user

2017-09-04 15:34:21.3778 Px5C4 Tx78 A9 C6 M10 Error Microsoft.Exchange.WebServices.Data.ServiceRemoteException: An internal server error occurred. The operation failed.
at Dell.MigrationManagerForExchange.General.Autodiscover.Autodiscover.GetUserSettings(String emailAddress, NetworkCredential creds, Uri& autodiscoverUrl, Boolean enableScpLookup, Nullable`1& isExternal, AutodiscoverUserSetting[] userSettingNames)
at Dell.MigrationManagerForExchange.General.Autodiscover.Autodiscover.GetEwsUrl(String emailAddress, NetworkCredential creds, Uri& autodiscoverUrl, Boolean enableScpLookup)
at Quest.MigrationManager.Exchange.MigrationConnectors.Ews.EwsSessionCreator.DiscoverUrl()
at Quest.MigrationManager.Exchange.MigrationConnectors.Ews.EwsSessionCreator.get_Url()
at Quest.MigrationManager.Exchange.MigrationConnectors.Ews.EwsSessionCreator.GetExchangeService()
at Quest.MigrationManager.Exchange.MigrationConnectors.Ews.EwsSyncConnector.get_Exs()
at Quest.MigrationManager.Exchange.MigrationConnectors.Ews.EwsSyncConnector.ConnectInternal()
at Quest.MigrationManager.Exchange.MigrationConnectors.Ews.EwsSyncConnector.ReconnectOverAutodiscover()
at Quest.MigrationManager.Exchange.MigrationConnectors.Ews.EwsSyncConnector.Connect()
at Quest.MigrationManager.Exchange.Agent.Jobs.DisPlusO365JobBase.ConnectOverEws()
at Quest.MigrationManager.Exchange.Agent.Jobs.DisBaseJob.ConnectionOverEws()
at Quest.MigrationManager.Exchange.Agent.Jobs.DisBaseJob.PerformSync()
at Quest.MigrationManager.Exchange.Agent.Jobs.DisBaseJob.RunJob()

Thanks.