Platform / Salesforce Archive
Content Document unarchive fails with "Documents in a user's private library must always be owned by that user" error.
Summary
When attempting to unarchive Content Documents, the process may fail during the creation of the Content Version with an INVALID_STATUS error. This issue occurs even when the "Handle Private Libraries During Unarchive" setting (ENABLE_PRIVATE_LIBRARY_HANDLING_IN_UNARCHIVE) is enabled.
Under the hood, if a private document (where PublishStatus is "P") has a null or empty FirstPublishLocationId, the unarchive handling logic fails to recognize it as requiring a publishing location adjustment. Consequently, the system attempts to restore the document without resolving the owner mismatch or assigning a valid publication target, triggering a strict Salesforce validation failure.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Solution Deployed with 5 reports
Nov 30, 2026