Email Migration

Fix Office 365 Sign-In Error During Exchange Hybrid Mailbox Migration

Ayan MasoodAyan Masood Nov 25, 2026 868 views

Question details

The user needs to move a mailbox from Exchange Server 2013 to Exchange Online without encountering an Office 365 sign-in error.

Fix Office 365 Sign-In Error During Exchange Hybrid Mailbox Migration
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the hybrid configuration

In the on-premises Exchange Admin Center, select Hybrid, then select Modify for the hybrid configuration.

2
Sign in to Office 365

Follow the sign-in prompt and enter the appropriate Office 365 administrator credentials. Review any configuration prompts before making changes.

3
Return to the local admin center

Return to the on-premises Exchange Admin Center after signing in, and select the Office 365 tab.

4
Start the mailbox move

Open Recipients > Migration, start a new move to Exchange Online, and select the mailbox and migration settings required by your deployment.

5
Check the migration status

In Recipients > Migration, select the migration batch and review its status and any reported errors.

Sign in through the Exchange hybrid configuration before moving the mailbox
If the error persists: This sign-in route resolved the reported case but may not resolve every JavaScript or authentication issue. Review the migration error details and your hybrid configuration if the move still fails.
Free Microsoft Office alternative

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.

Edit documents, spreadsheets, and presentations in a familiar interfaceOpen and save common Microsoft Office formats, including DOCX, XLSX, and PPTXUse a lightweight office suite alongside your email migration workflow
microsoft office alternative - wps office

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.