ServiceNow Learning 87: Resolution - How to fix the flows stuck on "Waiting" state?

Shamma Negi
Kilo Sage
Kilo Sage

Hi All,

 

Today I have come across a scenario wherein the flow got stuck on Waiting for so long. So here I will cover what to do in these scenarios:

 

In some cases, you may find a flow is unexpectedly stuck in the "waiting" state even though:

  • The approvals generated by the "ask for approval" action have been updated to "approved", "rejected", etc.
  • The wait for condition has been satisfied

Resolution:

 

Copy the sys_flow_context record sys_id from the context record and run the following script in Scripts - Background:

sn_fd.FlowAPI.nudgeFlow('<sys_flow_context.sys_id>', 1);

Where "1" is the amount of time the system should wait before nudging the Flow, in seconds.

 

Hope this helps.

I hope this article helpful. Please mark it as helpful and bookmark if you like it.

 

Regards,

Shamma

Regards,Shamma Negi
2 REPLIES 2

jonsan09
Giga Sage
Giga Sage

Great info, short and straight to the info. Thanks for sharing.

Thanks alot.

Keep reading and sharing with others.

 

Regards,

Shamma

Regards,Shamma Negi