This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CK - Utilities - File Version issue

Hello,

After installing the latest Compliance Kit, I have an issue with File Version functionality. 

This is the error I receive when trying to create or update a document which need File Version to be updated:

CoScriptObjectFactory.cpp, 465, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
ScriptErrorHelper.cpp, 96, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
MDispatchExImpl.h, 694, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
MDispatchExImpl.h, 994, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
MetadataCardAction.cpp, 386, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
MetadataCardAction.cpp, 570, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
MetadataEditor.cpp, 2959, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
MetadataModel.cpp, 4254, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
MetadataModel.cpp, 5079, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
CoVaultMountingDocumentOperations.cpp, 192, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
CoVaultMountingDocumentOperations.cpp, 404, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
DocumentCache.cpp, 1284, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
DocumentCache.cpp, 4861, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
DocumentCache.cpp, 4974, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
DocumentCache.cpp, 5214, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
RPCMethodCallWithRetry.h, 36, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
RPCMethodCallWithRetry.h, 36, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
RPCDocumentOperations.cpp, 13729, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
RPCDocumentOperations.cpp, 8619, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
MCallInLoop.h, 712, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
RPCDocumentOperationsHelper.cpp, 843, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
VaultDBSessionEvents.cpp, 315, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
VaultDBSessionEvents.cpp, 1602, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
VaultScriptSessionTemplates.cpp, 269, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
VaultScriptSessionTemplates.cpp, 328, Script execution failed. ((AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize: 7043-1)) (0x800408BB)
VaultScriptSessionTemplates.cpp, 328, The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
VaultScriptSessionTemplates.cpp, 510, The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
CoActiveScriptSite.cpp, 895, The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
CoActiveScriptSite.cpp, 737, The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
AfterCreateNewObjectFinalize::MFiles.ComplianceKit.MFEventHandlerAfterCreateNewObjectFinalize, 22, The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
CoDynamicCLRObjectWrapper.cpp, 552, The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
CoDynamicCLRObjectWrapper.cpp, 322, The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
ManagedError.cpp, 150, The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
VaultApplicationBase.cs, 266 (IL:45), The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
VaultApplicationBase.cs, 831 (IL:82), The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
MethodInfo.cs, 229 (IL:105), The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
UtilitiesModule.cs, 416 (IL:368), The action was denied because the property "File Version" was not updated correctly. To fix the issue, change event handler execution order. (0x80131600)
(M-Files 21.11.10853.6)

This error is thrown in both "AfterCreatenewObjectFinalize" and "AfterCheckInFinalize" event handlers.

In both event handlers, the CK event handlers are the last in the lists.

If I disable the event handlers, I do not receive this error anymore.

Any idea how to troubleshoot this?

Regards,

Radu

Parents Reply Children
  • It is not the case, and it was working ok before updating to the new CK.

    For the AfterCreateNewObjectFinalize, the only thing I do is adding an object into a task queue and it is not realted to the document that is using the File Version:

    [EventHandler(MFEventHandlerType.MFEventHandlerAfterCreateNewObjectFinalize)]
            private void SendCustomNotification(EventHandlerEnvironment env)
            {
                if (env.ObjVerEx.Type == this.Configuration.Notificare.ID) //234 - Notificare
                {
    
                    this.TaskManager.AddTask
                     (
                         env.Vault,
                         QueueIdPartajare,
                         SendCustomNotificationTask,
                         // Directives allow you to pass serializable data to and from the task.
                         directive: new ObjIDTaskDirective(env.ObjVer.ObjID)
                     );
    
    
                }
            }