Hi All,
I'm trying to add new node for 'Previous Approver' in start from hierarchy in purchase requisition workflow. I was able to add new node using below code in WorkflowHierarchyProviderHelper class, but when workflow runs and 'Previous Approver' condition is encountered, its giving the below error.
Stopped (error): X++ Exception: The hierarchy provider did not return any users.
at SysWorkflowHierarchyProvider-resolve
SysWorkflowHierarchyProvider-resolveHierarchy
SysWorkflowQueue-resume
I debugged the above error and found its not able to get any value in 'valueNodeData' variable of getInitialNodeId() method of class SysWorkflowHierarchyProvider class and further not able to find users for the hierarchy.
Could you please suggest why its not getting value for valueNodeData and how to get the value of Previous Approver and find its hierarchy in order to send the workflow approval to the person who is higher in hierarchy for the Previous Approver?
Help is much appreciated.