Error message “The value ‘xxx’ is not found in the map” when opening Workflow configuration

Sometime ago we run into the problem when using Workflow. Every time when we opened Workflow configuration for “Purchase requisition requisition” we run into error:

Error message “The value ‘xxx’ is not found in the map” when opening Workflow configuration

Where xxx in our case was EmplTable.

When we look dipper into problem it happens that we were able to create new configuration which was working correctly

We looked into AOT in Workflow \ Workflow Templates \ Purch Req Approval as only for this template Workflow configuration form was not working.

We found out this template is based on PurchReqDocument query (Document property) which was lately modified and EmplTable was added into root DataSource.

The root cause of this behavior was – every time Workflow configuration form is accessed, the data is built dynamically based on saved data and tries matching it with the existing data in ExpressionTable. The data exists in the ExpressionTable as XML field Projection.

Deleting the previous configuration solves the issue, since it builds a new templates (Expression table) or changes in existing templates (Expression table).