Error : Exchange: An unknown error has occurred. Refer to correlation ID: bcaed709-6a5f-498f-8ff4-634ea1d4e375
To get more details about this error start Powershell and enter this commands :
connect-msolservice
Get-MsolUser-HasErrorsOnly|flDisplayName,UserPrincipalName,@{Name=”Error”;Expression={($_.errors[0].ErrorDetail.objecterrors.errorrecord.ErrorDescription)}}
{The value “856e3acb-ab9a-45ea-93fd-1376af76c2a1” of property “ExchangeGuid” is used by another recipient object. Please specify a unique value., The value “856e3acb-ab9a-45ea-93fd-1376af76c2a1” of property “ExchangeGuid” is used by another recipient object. Please specify a unique value.}
I resolved this issue by
- placing the User account in an OU that is not synced to the Office 365.
- Force replication and AAD sync
- Disable the mailbox On-Premises with the disable-remotemailbox command <ExchangeGuid>
- Place the account back to the origin OU
- Force replication and AAD sync
At this moment the user account has a nemly created empty mailbox.
At this point we are going to use the New_MailboxRequest cmdlet to restore the (soft deleted) original mailbox to the newly created mailbox.
#To find the ExchangeGuid of the origin soft deleted mailbox :
Get-Mailbox -SoftDeletedMailbox <identity>| Fl Name,ExchangeGuid
#To find the ExchangeGuid of the newly created mailbox :
Get-Mailbox -Identity <identity> Select-Object UserPrincipalName,Name,ExchangeGuid
#Start the Mailbox restore
New-MailboxRestoreRequest -SourceMailbox “<ExchangeGuid softdeleted mailbox” -TargetMailbox “ExchangeGuid new mailbox” -AllowLegacyDNMismatch
#Folluw up
Get-MailboxRestoreRequest