Retention policy no longer works after a mailbox is moved from the on-premises environment to Exchange Online

Original KB number:   3194755

Note

Microsoft 365 compliance is now called Microsoft Purview and the solutions within the compliance area have been rebranded. For more information about Microsoft Purview, see the blog announcement.

Symptoms

When you move a mailbox from the on-premises Exchange environment to Exchange Online in a hybrid deployment, the retention policy that's applied to the mailbox no longer works.

You experience this issue even though you took one or both of the following actions:

  • You re-created the retention policy and assigned it to the mailbox.
  • You re-created the retention tag and added it to the retention policy.

Cause

Retention hold is enabled on the mailbox. By default, retention hold is enabled when a mailbox is moved from the on-premises organization to Exchange Online. When a mailbox is placed on retention hold, the processing of the retention policy for that mailbox is suspended.

To verify that retention hold is enabled on a mailbox, follow these steps:

  1. Connect to Exchange Online by using remote PowerShell. For more information, see Connect to Exchange Online PowerShell.

  2. Run the following command:

    Get-mailbox user@contoso.com |fl
    
  3. Examine the output. If the RetentionHoldEnabled parameter is set to True, retention hold is enabled.

Resolution

Disable retention hold on the mailbox. To do this, follow these steps:

  1. Connect to Exchange Online by using remote PowerShell. For more information, see Connect to Exchange Online PowerShell.

  2. Run the following command:

    Set-Mailbox user@contoso.com -RetentionHoldEnabled $false
    

More information

Still need help? Go to Microsoft Community or the Microsoft Q&A.