Tuesday, January 22, 2019

Microsoft Dynamics Stopped (error): SysWorkflowQueue-resume X++ Exception: D365FO / AX2012

After submitting the Workflow for workflow you may encounter these errors. These can be caused both from technical and configuration reasons. 


Stopped (error): SysWorkflowQueue-resume X++ Exception: Work item could not be created. Insufficient rights for user *.
at SysWorkflowWorkItem-create
SysWorkflowWorkItem-createWorkItems
SysWorkflow-save
SysWorkflowQueue-resume



Stopped (error): SysWorkflowQueue-resume X++ Exception:  Token StartElement in state Epilog would result in an invalid XML document.
 at SysWorkflowEvaluationProvider-evaluateCondition
SysWorkflowEvaluationProvider-evaluate
SysWorkflowQueue-resume

AX Functional consultants can do following steps to solve it:


  1. Open AOT> Workflow> Workflow types>*YourWorkflowType* 
  2. In the properties window there will be 'DocumentWebMenuItem' and 'DocumentMenuItem' add these menuitems privileges to user role who is executing the workflow. If these menuitems are not part of any privilege ask the developer to create one and then assign.
  3. If it still does not solve the issue ask technical consultant to solve this issue.

AX Technical consultants can do following steps to solve it:

  1. Make sure the privilege of Document menu items is created.
  2. Open your Workflow query make sure the following:
    1. You have followed the parent child relationship for example if in case of SalesTable and SalesLine the SalesLine should be child node of SalesTable. SalesLine should not be in same hierarchy as SalesTable or hierarchy above it.
    2. There should NOT be any inner join in your query- very common mistake. Change all inner joins to outer join.
    3. Make sure you have made the correct relationship conditions of parent and child.
  3. After these changes make sure you Rebuild the project with Sync and reset IIS in case of D365FO and run incremental CIL and sync element in case of AX 2012.
  4. Create a new record to test if changes have been reflected.

Have a good day.

No comments:

Post a Comment