Issue
The workflow is being executed without any problems locally. However, once the app is deployed into Mendix Cloud (or any other deployment type), it is not possible to call the workflow. The logs show the following error:
ERROR - WorkflowEngine: Executing Workflow 'WF Business' (ID: '12345678901234567' [Business.WF_Business]) activity 'UserTask: 'Review'' resulted in error: No users match the specified constraint.Environment
Applications hosted in any deployment type
Cause
This problem occurs when the workflow is unable to locate users with the specified role in the cloud environment (e.g.: the user task is unable to find any users to target). The task is working locally, as there were users with the required role.
Solution/Workaround
The problem can be solved by following these steps:
-
Review the user targeting configuration of the user task. To do this, open the Properties tab of the User task and navigate to General > Targeted users > Target users using > Database.
- Update the XPath constraint or adjust the target users' configuration based on the available users with the selected user role in the cloud environment.
- Retest the workflow in the cloud to verify if the issue has been resolved.
0 Comments