Fix Office 365 IMAP Migration UID Out of Range Errors
Question details
Resolve a UID out of range error affecting one mailbox in an Office 365 IMAP migration batch.

- Product
- Microsoft 365 Exchange Online IMAP migration
- Device & OS
- not provided
- Scenario
- An administrator is migrating mailboxes to Office 365 using an IMAP migration batch.
- Observed behavior
- One mailbox fails with a UID out of range error, while other mailboxes migrate successfully with the same settings.
Confirm which mailbox reports the error and check its migration status in the Exchange admin center. Make sure you have migration administrator access and, if using Outlook as an alternative, access to the source messages.
Retry synchronization for the affected mailbox
Use this first when only one mailbox fails; synchronization may succeed after one or more retries.
In the Exchange admin center, open Migration, select the affected batch, and view its migration users and error details.
Use the available retry or resume control for the affected user. If a user-level control is unavailable, check the batch controls and restart the batch as appropriate; this can affect other users in the batch.
Refresh the migration user details and check whether the mailbox reaches a synchronized status. Retry synchronization again if it fails with the same error.
If the error persists, search Microsoft Learn for IMAP migration troubleshooting and review the migration report for the affected mailbox.

Import the messages into the Microsoft 365 mailbox with Outlook
Use Outlook as an alternative when repeated migration retries fail and the source messages are available in a supported Outlook data file.
Work with Office files in WPS Office after your migration
WPS Office is a free, lightweight alternative for working with familiar Office documents, spreadsheets, and presentations. Its familiar interface and format support make it easy to move everyday file work from Microsoft Office. It does not repair Exchange migrations or import mailbox messages.

Frequently Asked Questions
Why did only one mailbox fail when the others migrated?
The error is associated with the affected mailbox's migration session, but the available information does not establish its exact cause. Open the batch in the Exchange admin center and inspect that user's migration details and report.
Should I retry synchronization more than once?
Yes. The reported experience is that restarting synchronization sometimes works after multiple attempts. Monitor the migration user status after each retry and review Microsoft Learn troubleshooting guidance if the error continues.
Can I import the messages without fixing the migration batch?
Yes, if you have the messages in a supported Outlook data file. In classic Outlook for Windows, use File > Open & Export > Import/Export and import the PST into the Microsoft 365 mailbox.
How can I confirm that imported messages reached Microsoft 365?
Allow Outlook to finish uploading, then sign in to Outlook on the web and check the destination folders and messages. Messages visible only in a local data file have not necessarily synchronized to the mailbox.




