Overview
User may get error following error when modifying workflow in M-Files Admin tool where <property_id> refers to deleted property definition ID. This property definition is identified as deleted but user cannot find that it is being used anywhere in the workflow state's <workflow_state> state properties.
CoSnapIn.cpp, 782, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
Item_Workflows.cpp, 613, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
SnapInItemBase.cpp, 1135, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
Item_Workflows.cpp, 756, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
WorkflowModel.cpp, 406, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
RPCWorkflowsAdminHelper.cpp, 49, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
RPCMethodCallWithRetry.h, 147, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
RPCMethodCallWithRetry.h, 147, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
RPCWorkflowsAdmin.cpp, 639, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
RPCWorkflowsAdmin.cpp, 241, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
RPCWorkflowsAdmin.cpp, 112, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
RPCWorkflowsHelper.cpp, 1638, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
RPCWorkflowsHelper.cpp, 4557, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
RPCWorkflowsHelper.cpp, 4064, The definition of the state "<workflow_state>" is not valid. (0x800400D7)
RPCWorkflowsHelper.cpp, 4064, Unknown property definition "<property_id>". (0x80040073)
RPCWorkflowsHelper.cpp, 3009, Unknown property definition "<property_id>". (0x80040073)
RPCWorkflowsHelper.cpp, 4848, Unknown property definition "<property_id>". (0x80040073)
RPCWorkflowsHelper.cpp, 5005, Unknown property definition "<property_id>". (0x80040073)
RPCPropertyDefsHelper.cpp, 4426, Unknown property definition "<property_id>". (0x80040073)
(M-Files 2022-07-07 T07:06:54.450Z)
There is open issue (ID 164033) to make editing possible in this kind of situation or pinpoint user for next actions.
The completed improvement will be is listed on Release note pages after it has been implemented.
Workaround
This error appears if property definition has been used in state's Action tab / Set properties definition and after this Set properties selection has been untagged and property definition deleted.
Set properties selection keeps the latest definitions after Set properties selection is untagged which leads to this error.
To work around this situation user needs to enable workflow state's Set properties tab again and save changes. This should make the error disappear.
