Recently, we experienced a workflow security issue when the new D365 update was installed. Originally, the workflow process was copied from one of the standard ones and had worked for at least one year.
The error message was:
Workflow Issue: Stopped (error): X++ Exception: Work item could not be created. Insufficient security permissions for user XXXX. Please review the user's security permissions to ensure they are sufficient for this workflow document and then resume the workflow.
The first idea was that there are some changes in the standard Workflow process that we should apply. But there were no changes. We read the standard documentation and this article on the workflow security.
We searched the Internet and found a lot of posts and articles on this error.
Below you can find a list of possible reasons for the error:
Unfortunately, all those options did not apply to our case.
We tried:
- Operations "Data > Synchronize all" and "Data > Repair" on the "Security Configuration" form.
- Re-assigning user roles. (System admin > Security > Assign users to roles)
- Applying the "System administrator" role to user accounts as much as possible.
and so on.
Finally, we were able to find the cause of the issue. The error message says that it is a security issue but, in our case, it was a workflow query issue. Users have started doing documents a bit differently and the query inside our workflow returned no record. The system interpreted this case as a security issue and raised the security error.
So, the lesson is: It can be not only about security permissions or configuration keys. If you see this error it makes sense to verify that the workflow query returns data.
No comments:
Post a Comment