Fix Office 365 Sign-In Error During Exchange Hybrid Mailbox Migration
Question details
The user needs to move a mailbox from Exchange Server 2013 to Exchange Online without encountering an Office 365 sign-in error.

- Product
- Exchange Server 2013 and Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator starts a hybrid mailbox move from the on-premises Exchange Admin Center.
- Observed behavior
- Selecting To Exchange Online produces a critical JavaScript sign-in error, although Office 365 sign-in works in a separate browser window.
Confirm that the hybrid deployment is configured and that you have the permissions needed to manage the migration and sign in to Office 365. Open the on-premises Exchange Admin Center and have the target mailbox details ready.
Sign in through the Exchange hybrid configuration before moving the mailbox
Use the hybrid configuration sign-in route when the direct To Exchange Online option produces a JavaScript error.
In the on-premises Exchange Admin Center, select Hybrid, then select Modify for the hybrid configuration.
Follow the sign-in prompt and enter the appropriate Office 365 administrator credentials. Review any configuration prompts before making changes.
Return to the on-premises Exchange Admin Center after signing in, and select the Office 365 tab.
Open Recipients > Migration, start a new move to Exchange Online, and select the mailbox and migration settings required by your deployment.
In Recipients > Migration, select the migration batch and review its status and any reported errors.

Work with Office documents in WPS Office
WPS Office is a free, lightweight alternative for everyday document work, with a familiar interface and Microsoft Office format compatibility to make switching easier. It does not fix Exchange sign-in errors or migrate mailboxes.

Frequently Asked Questions
Why does Office 365 sign-in work in a separate window but fail during migration?
The migration sign-in flow can encounter an error even when a separate browser sign-in succeeds. In the reported case, signing in through Hybrid > Modify before returning to the on-premises Exchange Admin Center allowed the move to work.
Where do I start the mailbox move after signing in?
Return to the on-premises Exchange Admin Center, select the Office 365 tab, and open Recipients > Migration to start a move to Exchange Online.
Do I need to change the hybrid configuration to use this workaround?
The reported workaround uses Hybrid > Modify to reach the Office 365 sign-in prompt. Review any configuration prompts carefully and make changes only if they are required for your deployment.
How can I check whether the mailbox move succeeded?
In the Exchange Admin Center, open Recipients > Migration and select the migration batch to review its status and any errors.




