Can not find user (2)
Detection
- RegExp:
Error (.*) In field: (.*) - no User named (.*) found
Examples
Error Case_Assignment In field: assignedTo - no User named john.doe@acme.com.dev found
Resolution
{1} names user {3}, which does not exist in the target org: usernames are not the same in each org (sandbox suffix).
- Assign to public groups or queues instead of named users -> https://help.salesforce.com/s/articleView?id=sf.creating_and_editing_groups.htm&type=5
- Or add a text replacement rule that writes the username of each org before each deployment (https://sfdx-hardis.cloudity.com/salesforce-devops-config-replacement-rules/)
- Or create user {3} in the target org