Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

Scripting Operation Error When Editing Document in Vault

Last updated on 30 September 2022

Admin
M-Files Admin

Overview

When editing a vault document, the following error may appear:
image.png
<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:
  1. Navigate to Document Vaults->[Vault Name]->Configuration->Advanced Vault Settings
  2. 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.
image.png
 

Still need help?