cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lukakico
Frequent Visitor

Power Automate State Machine - Timed out approvals don't disappear after State 1

Hello everyone,

 

I have created an approval workflow including a state machine that restarts once the approval has either been approved or has timed out.

If it's successful, the workflow will restart and then proceed to state 2 (filtered by a field "Workflow-Status"). If it times out after 1 hour (for testing purposes), it will restart the workflow at the state that it has timed out.

 

Now as far as the starting state 1 concerns, it works fine. If the approval has timed out, it disappears from the "Action items" in Power Automate and can't be accessed anymore.

But as soon as it gets to state 2 or any following state, the approval stays there and stacks up for every run in the workflow. So for example:

I don't answer the workflow for 5 hours which has entered state 2, I get 5 approvals, from which only the newest one works. (as the other workflows have been stopped already)

 

Below I have attached a screenshot from the workflow states. They are the same for every state.

 

Screenshot 2021-08-19 132541.jpg

 

 

Does anyone know of this problem? And is there maybe another way to get rid of timed out approvals?

 

Thank you very much for your help ! Let me know if you need any additional information.

 

2 REPLIES 2
Emily46
Frequent Visitor

Hi, 

maybe the YouTube-Video "Power Automate State Machine Workflows" and "Power Automate long running Approval flows (beyond 30 days)"

from reza dorrani can help solving your problem. It works for me.

Except when the flow is reaching the 30 day limit of a flow. Then the process is sending to much approvals to the person who is in line. But my process is really huge. I will separate the flow in smaler steps.

 

Hope this will help.

Best regards

 

 

Lukakico
Frequent Visitor

Hi,

unfortunately I have built the workflow exactly as described in this video (I watched it beforehand) and still the approvals don't disappear when they timeout.

 

Thanks anyway!

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,575)