When migrating users to Office 365 I’ve encountered two errors with the same fix. I wanted to share that fix with all of you.
NOTE: This is not just for O365 migrations, this could also apply to on-prem mailbox moves. The value below has changed over the years with Server OS and patch levels. Screen shots were taken from Server 2003 however this can apply to all server 2000 and newer versions.
Transient error SourceMailboxAlreadyBeingMovedTransientException has occurred. The system will retry (2/620).
Error details: Couldn’t switch the mailbox into Sync Source mode.
This could be because of one of the following reasons:
Another administrator is currently moving the mailbox.
The mailbox is locked.
The Microsoft Exchange Mailbox Replication service (MRS) doesn’t have the correct
permissions. Network errors are preventing MRS from cleanly closing its session
with the Mailbox server. If this is the case, MRS may continue to encounter this
error for up to 2 hours – this duration is controlled by the TCP KeepAlive settings
on the Mailbox server. Wait for the mailbox to be released before attempting to move
this mailbox again.
Typically when you see “The mailbox is locked.” you’ll find that the mailbox is locked by the Exchange backup software solution of choice. That was not the case with these two cases so it led me to more digging. I’ll spare you with all the links and suggestions that did not work.
Here’s the fix
On the source mailbox server open regedit.exe and navigate to the following reg keys
HKEY_Local_Machine -> System -> CurrentControlSet -> Services -> Tcpip -> Parameters
Create or edit your DWORD “KeepAliveTime” to 7200000 (2 hours) or if 2 hours is too rich set to 3600000 (1 hour) or 900000 (15 min)
Next, preform these same steps on your Hybrid server or that next hop Exchange server before it hits Office 365.
NOTE: Don’t forget to remove these changes when your migrations have finished.
Brandon Stuart, PEI