Retention: Resolve Errors in Microsoft 365 Retention and Retention Label Policies
Error: Settings Not Found
- In the Microsoft Purview portal, search for the policy on the following tabs-
- Data Lifecycle Management > Microsoft 365 > Retention policies
- Data Lifecycle Management > Microsoft 365 > Label policies
- Records Management > Label policies
- Select the policy, and then select Edit.
- In Retention settings, add rules to the retention policy.
Method 2: Use PowerShell
- Connect to Security & Compliance PowerShell.
- Use the applicable cmdlet for the workload to add rules to the retention policy.
Use the New-RetentionComplianceRule cmdlet for policies that target-
- Microsoft Exchange Online email
- Microsoft SharePoint sites
- Microsoft OneDrive accounts
- Microsoft 365 Groups
- Microsoft Skype for Business conversations
- Exchange Online public folders
- Microsoft Teams chat messages
- Teams channel messages
Error: Something Went Wrong
Run the following command, PolicyNotifyError can be seen in the value returned by the DistributionResults property:
Get -RetentionCompliancePolicy -Identity "<policy name>" -DistrbutionDetail | Select -ExpandProperty DistributionResults
Cause
An unspecified error occurred in the notification pipeline of the policy sync and distribution process.
Resolution
Use any of the following methods to resolve this issue:
Method 1: Use the Microsoft Purview portal
- Data Lifecycle Management > Microsoft 365 > Retention policies
- Data Lifecycle Management > Microsoft 365 > Label policies
- Records Management > Label policies
- To open the policy details pane, select the policy. Make sure to select the policy name and the corresponding checkbox. Otherwise, the details pane will not open.
- In the policy details pane, select Retry. The policy enters a pending state until policy sync and distribution finishes.
Method 2: Use PowerShell
- Connect to Security & Compliance PowerShell.
- Retry policy sync and distribution. Use the Set-RetentionCompliancePolicy cmdlet along with the RetryDistribution switch to redeploy the policy-
Set -RetentionCompliancePolicy -Identity "<policy name>" -RetryDistribution
Error: Your Policy is Stuck in PendingDeletion
- Connect to Security & Compliance PowerShell.
- Remove the policy. Use the Remove-RetentionCompliancePolicy cmdlet along with the ForceDeletion switch-
Remove -RetentionCompliancePolicy -Identity "<policy name>" -ForceDeletion
Comments
Post a Comment