Office365 – Mailbox movement completed with warning

I got a chance to work with Office365 migration. The test users using a PowerShell script never had issues while doing bulk move. However, The issue started while the production move started.

 

On the suspended comment, Here is the exact message I am getting.

Warning: Unable to update Active Directory information for the source mailbox at the end of the move. Error details: An error occurred while updating a user object after the move operation. –> The type initializer for ‘Microsoft.Exchange.Configuration.Tasks.TaskLogger’ threw an exception. –> Access is denied

 

office365 mailbox move - Completed with warning

Office365- MoveMailbox – Completed with Warning

At the same time, I am able to see the OnPremise mailbox as well as the Office 365 mailbox –  both existing at the same time. After a successful move to O365,  We can list view the mailbox as a remote mailbox from On Premise Exchange console. In this case, Get-RemoteMailbox samaccountname will throw an error.

The detailed log is something like this.

——————————————————————————————–

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:32:50 PM [O365SERVERNAME]

The mail user was converted into a mailbox using domain controller ‘O365ServerDomainController.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:32:52 PM [O365SERVERNAME]

Move has completed and final clean up has started.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:32:52 PM [O365SERVERNAME]

Target mailbox ‘Shabarinath Ramadasan’ was updated on domain controller ‘O365ServerDomainController.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:32:54 PM [O365SERVERNAME]

Failed to convert the source mailbox ‘Primary (NxNxxNdN-xNxN-NNNx-NNxN-INGITxxNNN)’ to mail-enabled user after the move.

Attempt 1/6. Error: UpdateMovedMailboxPermanentException.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:32:56 PM [O365SERVERNAME]

Source mailbox ‘Primary (NxNxxNdN-xNxN-NNNx-NNxN-INGITxxNNN)’ was successfully cleaned up after the move.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:32:56 PM [O365SERVERNAME]

Failed to reset the target mailbox after the move. Attempt 1/6. Error: MapiExceptionUnknownUser.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:32:56 PM [O365SERVERNAME]

Post-move cleanup failed. The operation will try again in 30 seconds (1/6).

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:33:27 PM [O365SERVERNAME]

Target mailbox ‘Shabarinath Ramadasan’ was updated on domain controller ‘O365ServerDomainController.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:33:29 PM [O365SERVERNAME]

Failed to convert the source mailbox ‘Primary (NxNxxNdN-xNxN-NNNx-NNxN-INGITxxNNN)’ to mail-enabled user after the move.

Attempt 2/6. Error: UpdateMovedMailboxPermanentException.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:33:29 PM [O365SERVERNAME]

Target mailbox information:

Regular Items: 243, 36.14 MB (37,898,242 bytes)

Regular Deleted Items: 0, 0 B (0 bytes)

FAI Items: 12, 0 B (0 bytes)

FAI Deleted Items: 0, 0 B (0 bytes)

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:33:29 PM [O365SERVERNAME]

Target mailbox ‘Primary (NxNxxNdN-xNxN-NNNx-NNxN-INGITxxNNN)’ was successfully reset after the move.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:33:29 PM [O365SERVERNAME]

Post-move cleanup failed. The operation will try again in 30 seconds (2/6).

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:34:01 PM [O365SERVERNAME]

Target mailbox ‘Shabarinath Ramadasan’ was updated on domain controller ‘O365ServerDomainController.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:34:03 PM [O365SERVERNAME]

Failed to convert the source mailbox ‘Primary (NxNxxNdN-xNxN-NNNx-NNxN-INGITxxNNN)’ to mail-enabled user after the move.

Attempt 3/6. Error: UpdateMovedMailboxPermanentException.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:34:03 PM [O365SERVERNAME]

Post-move cleanup failed. The operation will try again in 30 seconds (3/6).

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:34:35 PM [O365SERVERNAME]

Target mailbox ‘Shabarinath Ramadasan’ was updated on domain controller ‘O365ServerDomainController.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:34:37 PM [O365SERVERNAME]

Failed to convert the source mailbox ‘Primary (NxNxxNdN-xNxN-NNNx-NNxN-INGITxxNNN)’ to mail-enabled user after the move.

Attempt 4/6. Error: UpdateMovedMailboxPermanentException.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:34:37 PM [O365SERVERNAME]

Post-move cleanup failed. The operation will try again in 30 seconds (4/6).

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:35:09 PM [O365SERVERNAME]

Target mailbox ‘Shabarinath Ramadasan’ was updated on domain controller ‘O365ServerDomainController.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:35:11 PM [O365SERVERNAME]

Failed to convert the source mailbox ‘Primary (NxNxxNdN-xNxN-NNNx-NNxN-INGITxxNNN)’ to mail-enabled user after the move.

Attempt 5/6. Error: UpdateMovedMailboxPermanentException.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:35:11 PM [O365SERVERNAME]

Post-move cleanup failed. The operation will try again in 30 seconds (5/6).

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:35:43 PM [O365SERVERNAME]

Target mailbox ‘Shabarinath Ramadasan’ was updated on domain controller ‘O365ServerDomainController.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:35:45 PM [O365SERVERNAME]

Unable to update Active Directory information for the source mailbox at the end of the move.

Error: UpdateMovedMailboxPermanentException.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:35:45 PM [O365SERVERNAME]

Waiting for mailbox changes to replicate.

2/12/2013 12:42:06 PM [HUB1.EXCHANGESERVERTIPS.COM] 2/11/2013 9:36:06 PM [O365SERVERNAME]

Request is complete.

————————————————————————————————

At the end of the mailbox move, Onpremise mailbox should be converted into a mail user with few additional attributes and target address should be pointing to alias@yourdomain.mail.onmicrosoft.com. In my case, the on-premise mailbox was not getting converted into a remote mailbox. I see that all the attributes required for an On-premise mailbox are still intact. As we are doing bulk movements, It became a pain to fix this and ended up in a script.

Script will basically do

  • Clear Exchange Attributes which are required only for an Onpremise Mailbox
  • Set Additional attributes required for an Office365 remote mailbox
  • Set target address pointing to alias@yourdomain.mail.microsoftonline.com

The input file will be created using a Powershell onliner which should be called from a shell connected to Office 365.

 

(Get-MoveRequest -MoveStatus “completedwithwarning” |select alias)|export-csv cw-02122013-3

I have uploaded the script to Technet script gallery.

Here is my blog post for more details on this script.

Cheers

Shaba