web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to cancel a flow b...
Power Automate
Answered

How to cancel a flow but not have it listed as 'Failed'

(2) ShareShare
ReportReport
Posted on by 29
Hi guys, 
 
Our main approval flows are setup so the approval times out after 3 days. After the approval times out, there's a sharepoint update item action set to run on timeout of the approval action. The sharepoint action updates a 'StartWF' variable to YES on the list that this workflow triggers off, so the workflow then restarts again and resends the approval.
 
This then triggers a fresh run of this workflow and the first steps at the start of the flow are to cancel the previous approval and flow run. 
 
 
 
So our run history will look something like below with a particular SharePoint list ID timing out every 3 days and restarting unless someone approves the request within that 3 days. 
My question is, is there a way to set the run status of the timed out flow to something other then FAILED E.g. Cancelled? This is so we can exclude these from our failed flow report as they do take up a large portion of our failed flows but actually aren't failing, it's the correct action of the flow to be cancelled and restart. 
 
I'm currently just using the 'Cancel Flow Run' action which doesn't give many options, I'm assuming I'm going to have to find the flow run in the Dataverse table and change it's Status if possible??
 
Categories:
I have the same question (0)
  • Verified answer
    SM-24080244-0 Profile Picture
    7 on at
    @janeway5 You can you Terminate flow action

    It has status option "Cancelled"

     
     
     
    It will show canceled in the run history.


     

    If this answers your query, please mark it as answered. Thanks!

  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,412 Super User 2025 Season 2 on at
    Hi
     
    I swear I answered this same question the other day (well I did) just not sure it was you.
     
    You have a couple of options
     
    1. You first, can create a Branch (in Parallel) and set it to Timed Out, in there you can use Terminate true.
    2. You Catch the error, not simply have a terminate that catches Skipped/TimedOut/Error
     
    And so on.
     
    Do you want it to Succeed, but log something somewhere that it didn't actual do all of its work?
    Or do you want to terminate it where you can only use a few options but not do anything else
     
    I would suggest you do the Combination of Catching the Error, Logging something and then use Terminate, not just one or the other. Log something in a list or table or blob. You are going to want more than just looking at the List of flows and going oh it says cancelled.. Cancelled why? etc.
     
     
     
  • NQFlow Profile Picture
    24 on at
    Put a Terminate and set it to cancel

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard