Office 365 – Lync User Migration – Move-CsUser : Exception of type ‘Microsoft.Rtc.Management.AD.Helpers.RollbackException’ was thrown

When you migrate a Lync 2013 user to Office 365, an error can occur in the following scenario :

  1. UCS is enabled, by default on Lync 2013 when you have exchange 2013 : https://technet.microsoft.com/en-us/library/jj204963.aspx (Not Supported on Exchange 2010)
  2. You have migrated the user mailbox to the cloud

When you type this command:

Move-CsUser -Identity <[email protected]> -Target sipfed.online.lync.com -Credential (Get-Credential) -HostedMigrationOverrideUrl https://admin.online.lync.com/HostedMigration/hostedmigrationservice.svc

You will have the following error:

Move-CsUser : Exception of type 'Microsoft.Rtc.Management.AD.Helpers.RollbackException' was thrown

The easy way to avoid this error is to move the Lync part before the user mailbox.
The other way is to force the migration which can cause data loss with the –Force option.