Overview
You may encounter an error when attempting to undelete a document when working with a vault with Microsoft 365 Storage enabled:
Unspecified error. (Master Storage call failed with status: 500 Internal Server Error. Correlation Id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee)
Error reference ID: bbbbbbbb-cccc-dddd-eeee-ffffffffffff
Error code: 2
Note: the Correlation Id and the Error reference ID look similar to a vault GUID, but they are unique to each error instance. These can be useful for Support to trace the error if there are further problems.
Attempting to access the version history may also throw an error:
Error: M-Files can't open the version history right now. Please try again later. If the problem continues, contact your M-Files admin.
at e.<anonymous>
at Generator.throw (<anonymous>)
at s
Using Verify & Repair (Quick) can also throw an error related to this issue:
A file does not exist on disk.
NOTE: M-Files cannot fix this error automatically.
Solution
This is a known issue for vaults with Microsoft 365 Storage enabled, causing an undelete operation to fail with the above error. This issue is currently tracked with the tag CFO-606. When a fix is ready, it will be listed in the M-Files Release Notes and this article will be updated with the release version where this fix is applied.
Once M-Files is updated to the version where the fix is applied, it will again be possible to undelete deleted documents normally, view deleted documents' version history, and the Verify & Repair (Quick) "file does not exist on disk" error should no longer appear for this reason.
Workaround
It is still possible to download the deleted document and re-create it in the vault.
To do this, use the M-Files Classic Desktop and find the deleted document (using a user with "full control of vault" and searching using Additional Conditions > Deleted = Yes). From here you can download or save the document to your local device, then use that downloaded document to create a new document in the vault. You will need to fill in the relevant metadata again for this recreated document.
