cancel
Showing results for 
Search instead for 
Did you mean: 

Endless Loop in Approval of FI Invoice Workflow

prajitachaudhury
Discoverer
0 Kudos

Hi Everyone,

I was having a problem with the workflow template WS90400009 - Approval of FI Invoice Workflow.

When the Proof of Performance approver is trying to approve/reject an invoice, the workflow is getting into an endless loop in the class method CL_SWF_RUN_WFM->CHECK_CB_IN_DEADL_BRANCH.

This did not occur previously in any of the FI approval workflows and neither is it affecting any other workflow in the system. How could this suddenly happen?

Eventually, the system times out and the workflow log shows "In Process"...but does not process further!

Thanks in advance for the help!

Accepted Solutions (0)

Answers (2)

Answers (2)

prajitachaudhury
Discoverer
0 Kudos

Hi Everyone,

Thanks for the replies.

We just corrected the issue with the OSS Note 935994 -

Symptom :

In some cases, a timeout that is triggered by an endless loop in the CL_SWF_RUN_WFM->CHECK_CB_IN_DEADL_BRANCH method occurs after you execute a work item.

The timeout only occurs for workflow definitions with nested loops.

This issue begun after some modifications were done in a workflow with modelled deadline.

All workflows were going into a "hang" state.

Thankfully, issue is now resolved.

Former Member
0 Kudos

Hi Prajita Chaudhury,

There may be no reasons for this kind of issues. The solution for resolving this are:

1. Deactivate the Workflow

2. Check the Approve and Reject branches after the user decision step

3. If you have given any condition, Check the condition is getting satisfied or not. If the condition is not getting satisfied then terminate the flow.

Follow this step and try, even then if the issue resides. Give the brief discription of the same.

Thanks and Regards

Balaji K.

former_member185167
Active Contributor
0 Kudos

Hello,

How do you know it's going into an endless loop?

regards

Rick Bakker

Hanabi Technology