PurviewDeep dive

Sensitivity label and encryption errors in Purview: auto-labeling, Office and RMS

Look up sensitivity label and encryption errors: SharePoint and OneDrive auto-labeling failure codes, missing-label checks, Rights Management and IRM status, with fixes.

Sensitivity labels and encryption fail in quiet ways. An auto-labeling policy skips a file and records a short failure code, a label never shows up in Outlook, or encryption doesn't work because a service switch is off. This page collects the codes and status values Microsoft documents, with what each one means, the usual cause and the first thing to check. Press Ctrl+F, type the code you see and follow the guide link.

Codes in this quick reference

  • EncryptedFileNotSupported: external encryption or a password prevents labelingPurview portal (auto-labeling failures)
  • UnsupportedFileType: PDF labeling isn't enabledPurview portal (auto-labeling failures)
  • DisabledOrUnsupportedLabel: label disabled or not supported for this tenantPurview portal (auto-labeling failures)
  • InvalidFileName: the file name is invalidPurview portal (auto-labeling failures)
  • CancelledByEventHandler: a SharePoint event handler canceled the updatePurview portal (auto-labeling failures)
  • QuotaExceeded: the site storage quota is exceededPurview portal (auto-labeling failures)
  • FileLocked: another user or process locked the filePurview portal (auto-labeling failures)
  • FileCheckOut: a user has the file checked outPurview portal (auto-labeling failures)

+ 24 more codes in the tables below.

How this guide is organized: How to read these errors → Auto-labeling failures in SharePoint and OneDrive → Labels missing in Outlook and Office apps → Encryption service, Exchange IRM and PowerShell → Protected files that won't open → How to verify a fixFlow diagram of the article's sections in reading order: 1. How to read these errors. 2. Auto-labeling failures in SharePoint and OneDrive (2 parts: Codes you need to act on; Codes that need no action or retry automatically). 3. Labels missing in Outlook and Office apps. 4. Encryption service, Exchange IRM and PowerShell. 5. Protected files that won't open. 6. How to verify a fix. Toolbox: Get-AipService, Get-Label, Get-LabelPolicy, …\Security\Labels, Information Protection › Auto-labeling.1How to read these errors2Auto-labeling failures inSharePoint and OneDrive3Labels missing in Outlook andOffice appsCodes you need to act onCodes that need noaction or retry automati…4Encryption service, ExchangeIRM and PowerShell5Protected files that won't open6How to verify a fixTOOLBOXGet-AipServiceGet-LabelGet-LabelPolicy…\Security\LabelsInformation Protection › Auto-labelingHow this guide is organized: How to read these errors → Auto-labeling failures in SharePoint and OneDrive → Labels missing in Outlook and Office apps → Encryption service, Exchange IRM and PowerShell → Protected files that won't open → How to verify a fixFlow diagram of the article's sections in reading order: 1. How to read these errors. 2. Auto-labeling failures in SharePoint and OneDrive (2 parts: Codes you need to act on; Codes that need no action or retry automatically). 3. Labels missing in Outlook and Office apps. 4. Encryption service, Exchange IRM and PowerShell. 5. Protected files that won't open. 6. How to verify a fix. Toolbox: Get-AipService, Get-Label, Get-LabelPolicy, …\Security\Labels, Information Protection › Auto-labeling.1How to read these errors2Auto-labeling failures in SharePoint andOneDriveCodes you need to act onCodes that need no action or retryautomatically3Labels missing in Outlook and Office apps4Encryption service, Exchange IRM andPowerShell5Protected files that won't open6How to verify a fixTOOLBOXGet-AipServiceGet-LabelGet-LabelPolicy…\Security\LabelsInformation Protection › Auto-labeling
At a glance: how this guide is organized · 2 steps · 5 key settings and tools

How to read these errors#

Where to start with a sensitivity label or encryption problemWhere does the problem show up? if Auto-labeling: Do many files fail with the same code at the same time? if Yes: Check SharePoint Online service health (Spikes of one code often match a known service event); if No: Is it one of the codes you need to act on? if Yes: Fix the cause, then rerun the policy (For example remove a password or free site storage); if No: No action: retried or expected (For example FileLocked, or an existing label that wins); if Missing labels: Check built-in labeling and the policy (Registry value set to 1; label policy enforced and distributed); if Encryption: Check the Rights Management service (Get-AipService shows Enabled and Exchange IRM is configured)Where does the problem showup?Do many files fail with the samecode at the same time?NOTECheck SharePointOnline servicehealthSpikes of one codeoften match a knownservice eventYesIs it one of the codes you needto act on?FIXFix the cause,then rerun thepolicyFor example removea password or freesite storageYesNOTENo action: retriedor expectedFor exampleFileLocked, or anexisting label thatwinsNoNoAuto-labelingFIXCheck built-inlabeling and thepolicyRegistry value set to1; label policyenforced anddistributedMissing labelsFIXCheck the RightsManagementserviceGet-AipServiceshows Enabled andExchange IRM isconfiguredEncryptionWhere to start with a sensitivity label or encryption problemWhere does the problem show up? if Auto-labeling: Do many files fail with the same code at the same time? if Yes: Check SharePoint Online service health (Spikes of one code often match a known service event); if No: Is it one of the codes you need to act on? if Yes: Fix the cause, then rerun the policy (For example remove a password or free site storage); if No: No action: retried or expected (For example FileLocked, or an existing label that wins); if Missing labels: Check built-in labeling and the policy (Registry value set to 1; label policy enforced and distributed); if Encryption: Check the Rights Management service (Get-AipService shows Enabled and Exchange IRM is configured)Where does the problem show up?Auto-labelingDo many files fail with the same code at thesame time?YesNOTECheck SharePoint Online service healthSpikes of one code often match a known serviceeventNoIs it one of the codes you need to acton?YesFIXFix the cause, then rerun the policyFor example remove a password or free sitestorageNoNOTENo action: retried or expectedFor example FileLocked, or an existing labelthat winsMissing labelsFIXCheck built-in labeling and the policyRegistry value set to 1; label policy enforced anddistributedEncryptionFIXCheck the Rights Management serviceGet-AipService shows Enabled and Exchange IRM isconfigured
Figure 1 · Decision tree Where to start with a sensitivity label or encryption problem. Start from where the problem shows up. Auto-labeling records a failure code; missing labels and encryption problems show up in PowerShell output and a registry value instead.
  • Auto-labeling failure codes appear in the Microsoft Purview portal under Information Protection › Auto-labeling. Select the policy, open the Labeling failures tab, select a file and read Failure reason on the Details tab. The Overview tab's Labeling failures card shows the last 30 days and the top three reasons. Viewing them needs Compliance Administrator, Compliance Data Administrator, Information Protection Admin or Information Protection Analyst.
  • A failed label isn't half-applied. The file keeps its previous label, or stays unlabeled.
  • Missing labels and encryption problems rarely show an error code. The evidence is in PowerShell output (Get-Label, Get-LabelPolicy, Get-AipService, Get-IRMConfiguration) and in one registry value, listed in the later tables.

Note: the Azure Information Protection add-in is retired. Office apps use built-in labeling, and the Microsoft Purview Information Protection client (without the add-in) covers File Explorer, the viewer and PowerShell.

Auto-labeling failures in SharePoint and OneDrive#

These codes come from service-side auto-labeling policies (auto-labeling guide). If many files fail with the same code at the same time, check SharePoint Online service health first. Spikes in SqlThrottled, TransientErrorStorageConnection or Unknown_SPException often match a known service event.

Codes you need to act on#

CodeMeaningUsual causeFirst check
EncryptedFileNotSupportedExternal encryption prevents labelingPassword protection or non-Microsoft encryptionRemove the password or other encryption
UnsupportedFileTypePDF labeling isn't enabledSensitivity labels for files in SharePoint and OneDrive (PDF support) not turned onTurn it on. Guide
DisabledOrUnsupportedLabelLabel disabled or not supported for the tenantThe policy's label was turned off or unpublishedThe label is active and published in a label policy
InvalidFileNameThe file name is invalidInvalid characters or an over-long nameRename the file
CancelledByEventHandlerA site event handler canceled the operationA custom SharePoint event receiver rejects label-property updatesReview the site's custom event receivers
QuotaExceededSite storage quota exceededThe site is fullFree space or raise the quota, then rerun the policy

Codes that need no action or retry automatically#

CodeMeaningUsual causeFirst check
FileLockedFile locked by another user or processFile open or in useRetried automatically
FileCheckOutFile checked outA user has it checked outRetried automatically
FileNotSupportedFile type can't take a labelUnsupported formatNone; expected
FileExtensionNotSupportedExtension can't take a labelUnsupported extensionNone; expected
CannotOverrideCurrentLabelExisting label has equal or higher priorityA user or another policy labeled it firstNone; the existing label wins by design
ZeroByteFileFile is emptyLabel metadata can't be written to 0 bytesNone
GetTagsFailureExisting label metadata unreadableSharePoint couldn't read the file's label metadataRetried automatically
RmsUnavailableAzure Rights Management temporarily unavailableThe label applies encryptionRetried automatically
ConflictVersion or save conflictFile edited at the same timeRetried automatically
TransientTemporary infrastructure errorService sideRetried automatically
UnauthorizedAccessExceptionAccess denied while modifying the fileService sideRetried automatically
Unknown_SPExceptionUnclassified SharePoint errorService sideRetried; if the same files keep failing, contact Microsoft Support
TransientErrorStorageConnectionTemporary storage connectivity errorService sideRetried automatically
GenericExceptionUnexpected errorService sideRetried automatically
SqlThrottledRequests throttledHigh SharePoint database loadRetried automatically
DirectoryNotFoundFolder no longer existsDeleted after the file was classifiedNone
FileNotFoundFile no longer existsDeleted or moved after classificationNone

Labels missing in Outlook and Office apps#

When users can't see a label or the Sensitivity button, the cause is usually one of these values (detailed guide). Publishing a label policy can take up to 24 hours.

CodeMeaningUsual causeFirst check
UseOfficeForLabelling = 0Office isn't using built-in labelingValue under HKCU\Software\Microsoft\Office\16.0\Common\Security\Labels (or the matching Policies key) left from the old add-in or set by Group PolicySet it to 1 or remove the policy, then restart Office
DistributionStatus isn't SuccessLabel policy not distributedRecent change, or distribution failedWait, then check Get-LabelPolicy again
Mode isn't EnforceLabel policy not enforcedPolicy configurationFix with Set-LabelPolicy or in the portal
Workload without ExchangePolicy doesn't reach Outlook on the webNo Exchange location in the policyThe Exchange location settings, and group membership if the policy targets groups
Disabled : TrueThe label is turned offGet-Label shows it disabledTurn the label back on
ContentType without File or EmailLabel scope excludes the itemLabel scoped to other item typesEdit the label's scope to include files and emails

For a stuck Office client, exit all Office apps and rename %localappdata%\Microsoft\Office\CLP (for example to CLP_old). Office then downloads the labels and policies again. Other documented causes have no code: the signed-in account isn't a Microsoft 365 subscriber, no license is assigned, the app version doesn't support built-in labeling, or the file type isn't supported.

Encryption service, Exchange IRM and PowerShell#

CodeMeaningUsual causeFirst check
Get-AipService returns DisabledAzure Rights Management isn't activeThe service was deactivatedConnect-AipService as Compliance Administrator or Compliance Data Administrator, then Enable-AipService. Encryption options
AzureRMSLicensingEnabled : FalseExchange Online can't connect to Azure Rights ManagementMessage Encryption not configuredSet-IRMConfiguration -AzureRMSLicensingEnabled $true. Guide
Object reference not set to an instance of an object.The client's PowerShell module failedRun in PowerShell 7, which the Information Protection client doesn't supportUse Windows PowerShell instead

The service can't be activated or deactivated from admin portals any more; it's PowerShell only. If only some users can't encrypt, check whether onboarding controls (Set-AipServiceOnboardingControlPolicy) limit who may protect content.

Protected files that won't open#

Most "can't open" cases have no code. Microsoft documents these causes (access-denied guide):

  • The account has no rights. This is the usual cause. When a file does open, This document contains a permissions policy in the status bar and View Permission show what the account may do.
  • Office too old. For example, files whose label uses dynamic watermarking open only in version 2411 or later; try Office for the web.
  • Repeated sign-in prompts across tenants. The protecting tenant's Conditional Access can't be satisfied by a user who isn't provisioned there; invite them as a guest.
  • Information Protection viewer: guest organizational accounts work, personal accounts don't, and AD RMS-protected files don't open on Android.
  • Other encryption: files or emails signed or encrypted with S/MIME or other solutions can't be labeled, protected or decrypted.
  • New labels fail to apply with co-authoring turned on, if the policy changed while Office was open. Close and reopen the app.

How to verify a fix#

  1. Run the diagnostic. Run Tests: Sensitivity labels in the Microsoft 365 admin center (Global Administrator) takes a label name and a user. Some tenants also have diagnostics under Information Protection › Diagnostics in the Purview portal.
  2. Check the configuration (connection help):
    PowerShell
    Connect-IPPSSession
    Get-Label -Identity "Confidential" | Format-List DisplayName, ContentType, Disabled
    Get-LabelPolicy -Identity "Default label policy" | Format-List Mode, Workload, DistributionStatus
    
    Connect-AipService
    Get-AipService
    
    Connect-ExchangeOnline
    Get-IRMConfiguration | Format-List AzureRMSLicensingEnabled
    Test-IRMConfiguration -Sender adele@contoso.com -Recipient adele@contoso.com
    Good is Disabled : False, Mode : Enforce, DistributionStatus : Success, Enabled from Get-AipService and AzureRMSLicensingEnabled : True. Test-IRMConfiguration should report:
    Text
    - PASS: RMS Templates acquired.
    - PASS: Encryption verified successfully.
    - PASS: Decryption verified successfully.
    - PASS: IRM verified successfully.
  3. Rule out TLS inspection. If clients can't reach the service, check who issued the certificate on the Rights Management endpoint. Anything other than a Microsoft CA means a proxy or firewall is breaking the connection:
    PowerShell
    $request = [System.Net.HttpWebRequest]::Create("https://admin.na.aadrm.com/admin/admin.svc")
    $request.GetResponse()
    $request.ServicePoint.Certificate.Issuer
  4. Auto-labeling: rerun the policy where the code calls for it (for example QuotaExceeded). Once the policy processes the file again, confirm the label on the file itself in SharePoint or OneDrive.

For DLP messages, see the DLP messages quick reference. For the label rollout itself, see rolling out sensitivity labels.

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

Intune Subject Matter Expert in Cairo, Egypt, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)