Overview: The Power Automate Approval action on an existing flow stops working and throws the error: "'XrmApprovalsUserRoleNotFound'. Error Message: The 'Approvals User' role is missing from the linked XRM instance." I did not have control on the environment so I needed others to perform the fix so that I could verify.
Problem:
The ‘Start
and wait for an approval’ action/connector used in a Power Automate flow has
been failing for 3 weeks in Dev, I now need this functionality to change the
workflow ‘IDC-StartApprovalCertificateWorkflow’.
Initial
Hypothesis:
All the runs of my flow have been failing for 3 weeks in Dev for 3 weeks on the ‘Start and wait for an approval’ in the dev env. I have tried creating a new vanilla flow using the ‘Start and wait for an approval’ action and it fails with the same issue.
Triggering the flow in other environment including my production, and the ‘Start and wait for an approval’ action works. I cannot see any difference except the environments. The error message "XrmApprovalsUserRoleNotFound" is basically telling me that my user should be in the Approval Users role. I have the role assigned.
- Env: Client-DEV
- Type: Automated
- Plan: This flow runs on owner's plan (paul@client.com)
Resolution:
Microsoft
Support: Check the
user running the flow is int he 'Approvals User' role is correctly assigned in
the environment user security roles.
Admin: The user running the flow already
has the role assigned. We have re-assigned the role again. Did not test, got the developer/owner to
test.
Developer/me/flow owner: The approval has started
working again in the Dev environment, I just retested and flow that was not firing yesterday is now working again. New flows also fire/work correctly.
Summary: The user role in the Dataverse was correctly assigned, it looks like a refresh of the user in the 'Approver User' role corrected the issue.
Research:
https://www.linkedin.com/pulse/power-automate-approvals-flows-failing-adrian-colquhoun
0 comments:
Post a Comment