There are 60 workflows available within AX and it can be frustrating to try and set up specific security for each one. The following message is no exception (pun).
Symptom
Symptom
Stopped (error): X++ Exception: Work item could not be created. Insufficient rights for user cluther.
at SysWorkflowWorkItem-create
SysWorkflowWorkItem-createWorkItems
SysWorkflow-save
SysWorkflowQueue-resume
SysWorkflowMessageQueueManager-executeTask
SysWorkflowMessageQueueManager-run
Details
Throws the error from ClassesSysWorkflowWorkItem.create() line 155
Approach
Add the following warning messages to the SysWorkflowDocument so that AX explicitly tells you what access is required in order to run the workflow.
Add the following warning messages to the SysWorkflowDocument so that AX explicitly tells you what access is required in order to run the workflow.
Microsoft has added this logging to the LCS logs now, so if you search for “Workflow User Invalid Permission Error” in the LCS Logs for the time range when the error occurred, it will show you the missing permission in the 2 fields: AxObjectType and AxObjectName.