<-- Back

No users match the specified constraint error when executing a Workflow

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: 

  1. Review the user targeting configuration of the user task. To do this, open the Properties tab of the User task and navigate to GeneralTargeted users > Target users usingDatabase. XPath.png
  2. Update the XPath constraint or adjust the target users' configuration based on the available users with the selected user role in the cloud environment.properties.png
  3. Retest the workflow in the cloud to verify if the issue has been resolved.

Internal information related

  • 191028

Additional Information 

Mendix documentation: Target Users Using

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.