Share via

"File Not Found" error when applying retention label to a 'NEW' folder in SharePoint

Molly Brean 0 Reputation points
2026-06-01T03:24:06.2033333+00:00

Hi all,

I'm hoping someone can help me understand an error I'm hitting in SharePoint (retention labels managed via Microsoft Purview).

What I'm trying to do: Apply a retention label to a folder in a SharePoint document library.

What happens: When I create a new folder and try to apply the label, I get: "Error: File Not Found".

User's image Has anyone seen this "File Not Found" error specifically when applying a retention label during folder creation? Is it expected that the label can't bind to a folder that hasn't been saved yet, and that the supported sequence is to create the folder first and then apply the label from the details pane?

Any pointers appreciated — happy to provide more detail.

Thanks!

Microsoft Security | Microsoft Purview

1 answer

Sort by: Most helpful
  1. AI answer

    2026-06-01T03:24:23.67+00:00

    The behavior described is consistent with how retention labels are applied and enforced and with known “File not found” patterns when the underlying location or container does not yet exist.

    When a folder is being created in SharePoint, the item (the folder object) does not fully exist until the creation operation completes. Retention labels are enforced by policies that must be able to resolve a real location/container. If the label is applied as part of the same “new item” operation before the folder is actually committed, the system can effectively be trying to bind the label to a location that is not yet available, which results in a “File not found”–type error.

    Supported and reliable sequence for applying a retention label to a folder in a SharePoint document library is:

    1. Create and save the folder first (so the folder exists as an item in the library).
    2. After the folder is created, select it and use the Details pane (or equivalent UI) to apply the retention label.

    This aligns with how Microsoft Purview retention and retention label policies work: policies and labels are enforced only after the target location exists and has successfully synced and been processed. Errors in policy distribution or in resolving locations are a known class of issues; Microsoft Purview does not support policies that contain such errors and requires them to be resolved before enforcement works as intended.

    If the error persists even when applying the label after the folder exists, the next step is to check for retention/label policy errors in Microsoft Purview and resolve any reported issues before retrying.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.