The CreatorCon Call for Content is officially open! Get started here.

Flow designer is stuck in waiting state after using "Wait for a duration of time" flow logic

Simran7
Tera Contributor

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

find_real_file.png

And here is the output after running my flow designer and it always stuck on waiting state

find_real_file.png

Please help me with this. Any advice will be appreciable. 

18 REPLIES 18

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

find_real_file.png

 

find_real_file.png

 

Simran7
Tera Contributor

Here is the screen shot for line 7

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?

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

find_real_file.png

 

Step 2:- Look up records to check if there is more catalog tasks opened under RITM

find_real_file.png

 

Step 3:- If the count from above records is greater than 0 then end the flow, otherwise go into else condition

find_real_file.png

 

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

find_real_file.png

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. 

 

kemmy1
Tera Guru

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.