Showing results for 
Search instead for 
Did you mean: 

Terminate Control : Power Automate/Flow

Have you ever thought of terminating power automate/flow if condition is not met?

Recently I have come across this scenario and I used ‘Terminate’ control to achieve this.



Terminate control gives you option to set the status (Failed , Succeeded , Cancelled , Custom Value ) .




If you select Failed , it gives you option to provide error code and error message.

In this way , we can terminate the flow using ‘Terminate’ control if condition is not met.

In my case, I want to terminate the flow based on work order status value . Have a look at the below image for reference.



Note :

Terminate control will terminate the whole flow. We cannot use it to terminate any specific branch .

If you choose ‘Enter custom value’ for Status, It will throw error while saving the flow(see below image for reference). Hoping that

Microsoft will fix this soon.



This only works if you use one of the three preset status codes.’Failed, Cancelled, Succeeded'.

Hope it helps!



Hi @nagaraja2026  Great little tip buddy, much appreciated.


Just to poke the bear, @Cyparson or @RichardTodd or @nitika*; is there any update on @nagaraja2026   comment about maybe MS will building the ability for users to specify their own [Terminate] status value, without it throwing an error?


(*Why us?: Sorry guys, you were the last MS Employees I have seen active within the forum, so I reached out to you.)

Hi @JoshPayneSays I didn't find any documentation on this behavior even when many users are reporting this. I would request you to create a support ticket to seek an answer from product group whether this is supported or not and if not then why not and what's to roadmap for this feature release.



If it's not supported it should not show up as it is confusing. Is there any news about this issue?

It's January 2022, and the issue is still happening.

Yes - April 2022 and I just encountered this.

Still a problem 🙂

Any chance this gets fixed in our lifetimes?

How many years long is the "soon" window on this?

November 2, '22....still throws an error. 

3-23-2023 ... still not fixed.

The purpose of the "Custom Value" option is to dynamically set one of the static selections with an expression to reflect root cause for termination.  For example, a single termination control at the end of a flow would show "Cancelled" if a condition were not met or "Succeeded" if so.  




A plain text custom value will always throw an error. It needs to match one of the options for the status of the flow run, which are only Succeeded, Canceled, or Failed. If you enter a custom value here like "Rejected by User" or something like that, it would not match a valid selection for the status of the flow, meaning that when looking at your flow runs you would have some that were just blank.


What I do wish is that you could add a code and a message to "canceled" for auditing. So I can quickly pull up my flow and see if a flow failed that it actually failed and didn't just reach the terminate action of my flow. My example is an approval flow. If the approval request is rejected, I want the flow to kick off an email to the requestor and stop performing actions, so I added the Terminate control. Marking it as Succeeded is misleading because a Team is created at the end of the flow, so we'd like any flow that succeeds to represent the number of Teams that were created by the flow. If we terminate them as "Failed" then we can't easily identify what failed and what was rejected at the approval stage, but if I use canceled, I can't add a description for why. In this case I would say "Request Canceled by Approver" or something along those lines.

About the Author
  • Experienced Consultant with a demonstrated history of working in the information technology and services industry. Skilled in Office 365, Azure, SharePoint Online, PowerShell, Nintex, K2, SharePoint Designer workflow automation, PowerApps, Microsoft Flow, PowerShell, Active Directory, Operating Systems, Networking, and JavaScript. Strong consulting professional with a Bachelor of Engineering (B.E.) focused in Information Technology from Mumbai University.
  • I am a Microsoft Business Applications MVP and a Senior Manager at EY. I am a technology enthusiast and problem solver. I work/speak/blog/Vlog on Microsoft technology, including Office 365, Power Apps, Power Automate, SharePoint, and Teams Etc. I am helping global clients on Power Platform adoption and empowering them with Power Platform possibilities, capabilities, and easiness. I am a leader of the Houston Power Platform User Group and Power Automate community superuser. I love traveling , exploring new places, and meeting people from different cultures.
  • Read more about me and my achievements at: MCT | SharePoint, Microsoft 365 and Power Platform Consultant | Contributor on SharePoint StackExchange, MSFT Techcommunity
  • Encodian Owner / Founder - Ex Microsoft Consulting Services - Architect / Developer - 20 years in SharePoint - PowerPlatform Fan
  • Founder of SKILLFUL SARDINE, a company focused on productivity and the Power Platform. You can find me on LinkedIn: and twitter I also write at, so if you want some Power Automate, SharePoint or Power Apps content I'm your guy 🙂
  • I am the Owner/Principal Architect at Don't Pa..Panic Consulting. I've been working in the information technology industry for over 30 years, and have played key roles in several enterprise SharePoint architectural design review, Intranet deployment, application development, and migration projects. I've been a Microsoft Most Valuable Professional (MVP) 15 consecutive years and am also a Microsoft Certified SharePoint Masters (MCSM) since 2013.
  • Big fan of Power Platform technologies and implemented many solutions.
  • Passionate #Programmer #SharePoint #SPFx #M365 #Power Platform| Microsoft MVP | SharePoint StackOverflow, Github, PnP contributor
  • Web site – Youtube channel -