Overview
When editing a vault document, the following error may appear:<MetadataEditor>, -, Script execution failed. ((AfterCheckInChanges::MFiles.ComplianceKit.MFEventHandlerAfterCheckInChanges: 10-3611-2)) (0x800408BB) CoVaultMountingDocumentOperations.cpp, 3273, Script execution failed. ((AfterCheckInChanges::MFiles.ComplianceKit.MFEventHandlerAfterCheckInChanges: 10-3611-2)) (0x800408BB) ….. VaultScriptSessionTemplates.cpp, 340, Check-out and check-in operations in scripts must occur in matching pairs. (0x80040837) VaultScriptSessionTemplates.cpp, 531, Check-out and check-in operations in scripts must occur in matching pairs. (0x80040837) VaultTrTrackerHelper.cpp, 643, Check-out and check-in operations in scripts must occur in matching pairs. (0x80040837) VaultTrTrackerHelper.cpp, 1393, Check-out and check-in operations in scripts must occur in matching pairs. (0x80040837) (M-Files 22.6.11534.5)
Solution
This error may occur on larger files/objects when attempting vault operations on them. The script operations are timing out before completing due to the file size and they cancel as a result.
To fix this, the Script Timeout and Operation Limit can be increased in M-Files Admin:
- Navigate to Document Vaults->[Vault Name]->Configuration->Advanced Vault Settings
- Continue to Scripting and increase the values for Script Timeout and Script Operation Limit incrementally until the error is no longer occurring on the affected document.
