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

Announcements

News and Announcements icon
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,932 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard