Something I learned the other day is when you create a snapshot that you intend to use in another tenant of the same instance, if you create a snapshot without attachments, you will be missing any files that are part of your customization projects. You’ll need to export the customization projects from the source tenant and then re-import them into the target tenant.
The error message I received was as follows:
PX.Data.PXException: Cannot access the uploaded file. Failed to get the latest revision of the file ecda4140-4831-4fe6-8674-68d14dec4445
at Customization.CstBinFile.GetFileFromDb()
at Customization.CstBinFile.SaveFiles(FilesCollection context)
at Customization.CstDocument.GetFiles(FilesCollection context)
at Customization.CstManager.ValidateDocument(CstDocument doc, Action`1 logMessageDelegate, Boolean patchLibInDB)
at PX.Customization.CstValidationProcess.ValidateCurrentDocument(Action`1 logMessage, String& warnings)
at PX.Customization.CstValidationProcess.CompileInternal()
at PX.Customization.CstValidationProcess.<>c__DisplayClass6_0.<ProcessRequest>b__0()