Overview
Having many workflow states (more than 5000 states) can cause issues when creating new workflows or states in M-Files Admin tool. As a result, the following error can be shown in Admin tool:
CoSnapInComponent.cpp, Unspecified error. (0x80004005)
Item_Workflow.cpp, Unspecified error. (0x80004005)
Item_Workflows.cpp, Unspecified error. (0x80004005)
WorkflowModel.cpp, Unspecified error. (0x80004005)
WorkflowGeneralModel.cpp, Unspecified error. (0x80004005)
Solution
As default the limit used for searching value list items is limited to 5000 for performance reasons. This limit can be increased through M-Files Admin tool and the Advanced Vault Settings:Configurations > Search > Limit > Value List Item count limit (default 5000)
Please note, that increasing the default value too much can possibly have performance effect.
