- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 12:49 AM
Hello,
I encountered an issue with Flow, I managed to get a functionality working within the loop, but when the record is closed - and the condition in the "Do following until" loop should be fulfilled - the sub-flow still sits in the "Waiting" state.
Im not sure how to troubleshoot this since the configuration is being set as expected. The only specific is its ran in subflow, but the record in the input is working with other conditions just fine.
Any suggestions?
Thanks
Pavel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 07:22 AM
Thanks,
I ended up using something similar - put in a Parallel line with a "Wait for" condition, that also checked the states in case the case is closed - ending the flow if fulfilled.
Thanks a lot for all your support 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 02:49 AM
Hi @PavelP
Please check below highlighted 'Wait for condition' Logic, The sub-flow is waiting at action 3.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 02:54 AM
Indeed!
@PavelP can you share details about step 3, Wait for Condition?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 03:11 AM
Hi,
the step 3 "Wait for Condition" is waiting for a state change in the Record.
However, as I understood it, the "Do the following until" condition would take precedent - i.e. when the condition is set to close when the Record is cancelled, it wouldn't wait for the Steps inside the loop - similar what I found in the documentation - https://docs.servicenow.com/bundle/washingtondc-build-workflows/page/administer/flow-designer/concep...
In a different record, I ran all condition inside the loop, and the "Do until" loop was still stuck at waiting.
Is there anything I'm missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 04:34 AM
Hi @PavelP ,
I can see this subflow is executed for 3 times. In the very first step "Do the following 1 of 3", if you hover your cursor on "1" you will be able to see the up and down navigations. Go the third execution and check whether it stuck in the third execution.
Regards,
Dhanraj.