Hi All,
We are facing a new issue in a custom PO approval Workflow. In order to avoid repeating steps in a workflow, few steps that send the work item to approver, have been put in a sub workflow and used twice in a Main workflow, one without loop & one inside the loop.
It works fine when not in loop. But in a loop step, the sub workflow gets completed but control comes to the first step of the main workflow instead of the next step of the step type in which the sub workflow is used. First step of the main workflow is User decision step and I am receiving the work item again (I have set myself as agent). Please find the screen shot.
Also we are not able to find this happening by looking in workflow log. In workflow log, it is shown that sub workflow got completed but Main workflow in 'In Process' status and there is no information about loop2 also. Please see the images.
Kindly guide what could be the issue and solution for it.
Thanks
Rajee