Hi M-Files and community,
Wondering if someone could guide how to navigate following problem:
We have our own migration tool written based on REST-based API. For the last release, I had to change quite a bit in our VAF and now our migration tool stopped working.
I am getting an error:
M-Files: 21.10.10725.5 Due to a user or client operation, an error response with the following reference ID was sent to the client: 1ecb80f5-7a43-4bd1-bc1e-8f374dd0a866 If the error requires further investigation, see below for detailed error information. Exception Information Name: Message: The parameter is incorrect. ATLHelper.h, 474, The parameter is incorrect. (0x80070057) (M-Files 21.10.10725.5) (0027) URL: /objects/0 Method: POST Status Code: 500 Stack Trace at MFWS.RestHandlers.ObjectHandler.CreateObject(Int32 objId, ObjectCreationInfo creationInfo, Boolean checkIn) M-Files: CoVaultObjectOperations.cpp, 609, The preconditions specified for the new state are not satisfied. (0x80040840) ServerVaultObjectOperationsHelper.cpp, 65, The preconditions specified for the new state are not satisfied. (0x80040840) RPCObjectOperationsHelper.cpp, 283, The preconditions specified for the new state are not satisfied. (0x80040840) LatestRPC.generated.cpp, 16452, The preconditions specified for the new state are not satisfied. (0x80040840) RPCDocumentOperations.cpp, 11711, The preconditions specified for the new state are not satisfied. (0x80040840) RPCDocumentOperations.cpp, 5742, The preconditions specified for the new state are not satisfied. (0x80040840) MCallInLoop.h, 712, The preconditions specified for the new state are not satisfied. (0x80040840) RPCDocumentOperationsHelper.cpp, 2064, The preconditions specified for the new state are not satisfied. (0x80040840) RPCDocumentOperationsHelperPrivate.cpp, 208, The preconditions specified for the new state are not satisfied. (0x80040840) RPCDocumentOperationsHelper.cpp, 9397, The preconditions specified for the new state are not satisfied. (0x80040840) RPCDocumentOperationsHelper.cpp, 10069, The preconditions specified for the new state are not satisfied. (0x80040840) RPCDocumentOperationsHelper.cpp, 27746, The preconditions specified for the new state are not satisfied. (0x80040840) RPCDocumentOperationsHelperPrivate.cpp, 2883, The preconditions specified for the new state are not satisfied. (0x80040840) StateTransitionManager.cpp, 836, The preconditions specified for the new state are not satisfied. (0x80040840) StateTransitionManager.cpp, 836, Script execution failed. ((In Publishing, StateCondition: 5343-1)) (0x800408BB) StateTransitionManager.cpp, 1168, Script execution failed. ((In Publishing, StateCondition: 5343-1)) (0x800408BB) VaultScriptSessionTemplates.cpp, 273, Script execution failed. ((In Publishing, StateCondition: 5343-1)) (0x800408BB) VaultScriptSessionTemplates.cpp, 338, Script execution failed. ((In Publishing, StateCondition: 5343-1)) (0x800408BB) VaultScriptSessionTemplates.cpp, 338, The parameter is incorrect. ATLHelper.h, 474, The parameter is incorrect. (0x80070057) (M-Files 21.10.10725.5) (0027) (0x80040007) VaultScriptSessionTemplates.cpp, 521, The parameter is incorrect. ATLHelper.h, 474, The parameter is incorrect. (0x80070057) (M-Files 21.10.10725.5) (0027) (0x80040007) CoActiveScriptSite.cpp, 895, The parameter is incorrect. ATLHelper.h, 474, The parameter is incorrect. (0x80070057) (M-Files 21.10.10725.5) (0027) (0x80040007) CoActiveScriptSite.cpp, 737, The parameter is incorrect. ATLHelper.h, 474, The parameter is incorrect. (0x80070057) (M-Files 21.10.10725.5) (0027) (0x80040007) In Publishing, StateCondition, 25, The parameter is incorrect. ATLHelper.h, 474, The parameter is incorrect. (0x80070057) (M-Files 21.10.10725.5) (0027) (0x80040007) MErrorHelper.cpp, 2449, The parameter is incorrect. ATLHelper.h, 474, The parameter is incorrect. (0x80070057) (M-Files 21.10.10725.5) (0027) (0x80040007) (M-Files 21.10.10725.5) Browser Information Browser Name: Unknown Major Version: 0 Supports Frames: False Supports Tables: False Supports Cookies: True Supports Javascript: 0.0 Supports Java Applets: False System Information Operating System Platform: Unknown
Usually, in such cases, I would catch something on VAF if there is an issue and fix it or at least understood it.
Now I just see that error happens in workflow state:
StateTransitionManager.cpp, 836, Script execution failed. ((In Publishing, StateCondition: 5343-1)) (0x800408BB)
StateTransitionManager.cpp, 1168, Script execution failed. ((In Publishing, StateCondition: 5343-1)) (0x800408BB)
VaultScriptSessionTemplates.cpp, 273, Script execution failed. ((In Publishing, StateCondition: 5343-1)) (0x800408BB)
VaultScriptSessionTemplates.cpp, 338, Script execution failed. ((In Publishing, StateCondition: 5343-1)) (0x800408BB)
but even though I have on both State action and state pre-condition breakpoints (I debug on VAF), the break point does not get hit.
Do you have any suggestion how I could localize what is going on?
Best,
Dejan