Overview
If you get an error message from an event handler or extension method similar to this one (several full error stacks below):
VaultExtensionMethod::MFiles.ComplianceKit.MFEventHandlerVaultExtensionMethod, 14, Unspecified error. (0x80004005)
or
AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut, 14, Unspecified error. (0x80004005)
You may be hitting a known issue logged for fixing with ID 169552.
This can happen with relation to any application, event handler or vault extension method - not necessarily with ComplianceKit or other applications made by M-Files.
The error will usually contain the namespace/name of the application, mention of vault extension method or event handler, and line 14, and unspecified error.
Solution
This issue is fixed in the March 2024 SR1 (24.3.13497.5) release.
You need to upgrade the M-Files server to this or later release.
Workaround
Restart the vault.
Vault administrators can restart vaults in the M-Files Cloud as well, without need for M-Files support, which can speed up a workaround.
Sample error stacks
Example 1
Failed to apply custom TaskManager settings.
System.Runtime.InteropServices.COMException (0x80040001): Unspecified error.
CoVaultExtensionMethodOperations.cpp, 153, Unspecified error. (0x80004005)
CoRPCOverCOM.cpp, 16875, Unspecified error. (0x80004005)
RPCVaultExtensionMethods.cpp, 211, Unspecified error. (0x80004005)
RPCVaultExtensionMethods.cpp, 770, Unspecified error. (0x80004005)
RPCVaultExtensionMethods.cpp, 900, Unspecified error. (0x80004005)
MCallInLoop.h, 530, Unspecified error. (0x80004005)
RPCVaultExtensionMethods.cpp, 863, Unspecified error. (0x80004005)
VaultDBSessionEvents.cpp, 953, Unspecified error. (0x80004005)
VaultScriptSessionTemplates.cpp, 397, Unspecified error. (0x80004005)
VaultScriptSessionTemplates.cpp, 523, Unspecified error. (0x80004005)
CoActiveScriptSite.cpp, 897, Unspecified error. (0x80004005)
CoActiveScriptSite.cpp, 739, Unspecified error. (0x80004005)
VaultExtensionMethod::MFiles.ComplianceKit.MFEventHandlerVaultExtensionMethod, 14, Unspecified error. (0x80004005)
MErrorHelper.cpp, 2339, Unspecified error. (0x80004005)
(M-Files 24.1.13312.7 2024-01-23T12:58:10.262Z)
Example 2
Error: Unspecified error.
at MFilesErrorHelper.GetAsyncRejectionError (/lib/mfiles/MFilesErrorHelper.js:24:17)
at Anonymous function (/lib/mfiles/helpers/VaultExtensionMethodCaller.js:88:21)
AsyncCaller.cpp, 362, Unspecified error. (0x80004005)
CoVaultExtensionMethodOperations.cpp, 169, Unspecified error. (0x80004005)
LatestRPC.generated.cpp, 47510, Unspecified error. (0x80004005)
IRPCVaultExtensionMethods.generated.cpp, 71, Unspecified error. (0x80004005)
gRPCClient.cpp, 497, Unspecified error. (0x80004005)
gRPCClient.cpp, 466, Unspecified error. (0x80004005)
gRPCClient.cpp, 99, Unspecified error. (0x80004005)
gRPC.generated.cpp, 31978, Unspecified error. (0x80004005)
RPCVaultExtensionMethods.cpp, 150, Unspecified error. (0x80004005)
MCallInLoop.h, 530, Unspecified error. (0x80004005)
RPCVaultExtensionMethods.cpp, 863, Unspecified error. (0x80004005)
VaultDBSessionEvents.cpp, 953, Unspecified error. (0x80004005)
VaultScriptSessionTemplates.cpp, 397, Unspecified error. (0x80004005)
VaultScriptSessionTemplates.cpp, 523, Unspecified error. (0x80004005)
CoActiveScriptSite.cpp, 897, Unspecified error. (0x80004005)
CoActiveScriptSite.cpp, 739, Unspecified error. (0x80004005)
VaultExtensionMethod::CustomAppEventHandlers.MFEventHandlerVaultExtensionMethod, 14, Unspecified error. (0x80004005)
MErrorHelper.cpp, 2339, Unspecified error. (0x80004005)
(M-Files 23.12.13247.4 2024-01-24T08:58:42.868Z)
Example 3
CoVaultExtensionMethodOperations.cpp, 153, Unspecified error. (0x80004005)
CoRPCOverCOM.cpp, 16875, Unspecified error. (0x80004005)
RPCVaultExtensionMethods.cpp, 211, Unspecified error. (0x80004005)
RPCVaultExtensionMethods.cpp, 770, Unspecified error. (0x80004005)
RPCVaultExtensionMethods.cpp, 900, Unspecified error. (0x80004005)
MCallInLoop.h, 530, Unspecified error. (0x80004005)
RPCVaultExtensionMethods.cpp, 863, Unspecified error. (0x80004005)
VaultDBSessionEvents.cpp, 953, Unspecified error. (0x80004005)
VaultScriptSessionTemplates.cpp, 397, Unspecified error. (0x80004005)
VaultScriptSessionTemplates.cpp, 523, Unspecified error. (0x80004005)
CoActiveScriptSite.cpp, 897, Unspecified error. (0x80004005)
CoActiveScriptSite.cpp, 739, Unspecified error. (0x80004005)
VaultExtensionMethod::SomeAppEventHandlers.MFEventHandlerVaultExtensionMethod, 14, Unspecified error. (0x80004005)
MErrorHelper.cpp, 2339, Unspecified error. (0x80004005)
(M-Files 24.1.13312.7 2024-01-24T10:41:14.326Z)
Example 4
<MetadataEditor>, -, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
ScriptErrorHelper.cpp, 96, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
MDispatchExImpl.h, 679, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
MDispatchExImpl.h, 841, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
MetadataCardAction.cpp, 386, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
MetadataCardAction.cpp, 560, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
MetadataEditor.cpp, 2957, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
MetadataModel.cpp, 4488, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
MetadataModel.cpp, 4939, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
ElectronicSignatureUIHelper.cpp, 239, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
MetadataModel.cpp, 12663, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
CoVaultMountingDocumentOperations.cpp, 3296, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
CoVaultMountingDocumentOperations.cpp, 3384, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
DocumentCache.cpp, 11825, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
DocumentCache.cpp, 11936, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
DocumentCache.cpp, 20390, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
RPCMethodCallWithRetry.h, 21, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
RPCMethodCallWithRetry.h, 21, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
RPCDocumentOperations.cpp, 12615, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
RPCDocumentOperations.cpp, 7186, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
MCallInLoop.h, 530, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
RPCDocumentOperationsHelper.cpp, 4466, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
RPCDocumentOperationsHelper.cpp, 3978, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
RPCDocumentOperationsHelperPrivate.cpp, 11304, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
RPCDocumentOperationsHelper.cpp, 11321, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
RPCDocumentOperationsHelper.cpp, 12286, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
VaultDBSessionEvents.cpp, 382, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
VaultDBSessionEvents.cpp, 1766, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
VaultScriptSessionTemplates.cpp, 276, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
VaultScriptSessionTemplates.cpp, 341, Script execution failed. ((AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut: 147-32973-3)) (0x800408BB)
VaultScriptSessionTemplates.cpp, 341, Unspecified error. (0x80004005)
VaultScriptSessionTemplates.cpp, 523, Unspecified error. (0x80004005)
CoActiveScriptSite.cpp, 897, Unspecified error. (0x80004005)
CoActiveScriptSite.cpp, 739, Unspecified error. (0x80004005)
AfterCheckOut::MFiles.ComplianceKit.MFEventHandlerAfterCheckOut, 14, Unspecified error. (0x80004005)
MErrorHelper.cpp, 2339, Unspecified error. (0x80004005)
(M-Files 24.2.13421.8 2024-03-18T08:10:58.211Z)
