Flow designer is stuck in waiting state after using "Wait for a duration of time" flow logic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2021 12:53 AM
Hi, I am new to Flow designer. I am trying to send reminder notifications after 3 business days and just for testing purpose I am sending notifications after 10 min. For this I am using "Wait for a duration of time".
The issue is Its always stuck in waiting state even after 10 minutes has been passed
Here is the screen short of my flow designer "Wait for a duration of Time" step
And here is the output after running my flow designer and it always stuck on waiting state
Please help me with this. Any advice will be appreciable.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2021 02:00 AM
Hi Sumit. I tried changing it to "Run flow in foreground" but its still in waiting state.
I tried with 10 seconds and it worked. But then I tried with 2 min and it didn't worked. It went back to waiting state. Seems like only 10s is working fine
And here is the screen shot for line 7. I tried it with 2min
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2021 02:09 AM
Here is the screen shot for line 7

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2021 04:46 AM
I tested for 2 min on my PDI and it works. The only thing worth noticing is that though flow performs the required action after the timer duration is over but this view of flow execution doesn't refresh on its own. You have to press that refresh icon on top (before that waiting status) to see the step where flow has reached after timer is elapsed. Are you saying even after refresh the view is stuck here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2021 09:46 AM
Yes, Even after refresh the flow is in waiting state. I tried in my PDI and same result. can you try the same in your pdi. I will provide the steps.
So what I am looking to achieve is a confirmation of resolution
1. After the user submits a request from portal and when the fulfiler worked on it and resolved it, then the fulfiler change the state of catalog task from "work in progress" to "pending" and the RITM will change to pending as well.
2. When RITM changes to pending the first notification will go to the user to accept or reject the resolution
3. If the user does not reply in 3 business days, here I am testing for 2 minutes (just for the testing purpose) and again the email will go out
Step 1:- Trigger the flow
Step 2:- Look up records to check if there is more catalog tasks opened under RITM
Step 3:- If the count from above records is greater than 0 then end the flow, otherwise go into else condition
Step 4:- Else update the RITM record of the catalog task. Set the state of RITM to pending and send the first notification to the requestor of the RITM. Send email is the email I am using in Flow
Step 5:- Wait for 2 minutes. Here is where its always waiting.
Can you please try the same thing in your pdi and see if this works. Really appreciate your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2021 07:57 AM
I've been seeing this problem as well in our Dev instance. It does eventually kick off, but maybe after 10 minutes. And it doesn't consistently do this. It's very frustrating.
The really funny thing is we had to set up a timer because of another bug with ServiceNow. If you have consecutive approvals, sometimes it would skip over the next approval. So their suggestion was to put a 2 minute timer in between approvals.