AutomateAlong

Guides › Error handling

Get an alert when a Power Automate flow fails (Try and Catch scopes)

Updated 28 October 2026

Short answer: put your flow's steps inside a Scope called Try. Add a second Scope called Catch after it, set Catch's Run after to has failed and has timed out only, and put a Send an email step inside Catch. Add a Terminate step set to Failed at the end of Catch so the run history still shows the failure.

Why you need this

Microsoft does email flow owners about some problems, such as broken connections or throttling. Its own guidance doesn't promise an email for every failure, though, and the flow's owner isn't always the person who needs to know. When a step fails, the steps after it simply don't run. If nobody checks the run history, an invoice isn't filed or an approval is never sent, and nobody notices for weeks.

Microsoft's recommended fix is a Try and Catch pattern built from Scopes. A Scope is a box that groups steps together, so you can react to anything inside it failing.

How “Run after” works

Every step has a Run after setting. By default, a step only runs if the step before it is successful. You can change it to also (or only) run when the previous step has failed, is skipped or has timed out. That's the switch the Catch scope uses.

Step by step

  1. Add the Try scope. Directly under your trigger, add a Scope action (search for “Scope”, under Control). Rename it Try.
  2. Move your steps into it. Drag every step that does the work into the Try scope. Leave Initialize variable steps outside and above it: Power Automate doesn't allow them inside a Scope.
  3. Add the Catch scope. Below Try (not inside it), add another Scope. Rename it Catch.
  4. Change Catch's Run after. Select Catch, open its Settings tab (classic designer: … menu, then Configure run after). Under Run after, untick Is successful and tick Has failed and Has timed out.
  5. Add the email inside Catch. Add Send an email (V2) (Office 365 Outlook) inside Catch. Send it to yourself or a shared team mailbox. Fill in the subject and body as below.
  6. End the run as failed. Still inside Catch, after the email, add Terminate and set Status to Failed. Without this, a run that failed and was caught can show as successful in the run history.

Put a link to the failed run in the email

The most useful thing in the alert is a direct link to the run, so you can see which step failed and why. In the email body, insert this as an expression (the fx button):

concat('https://make.powerautomate.com/environments/', workflow()?['tags']?['environmentName'], '/flows/', workflow()?['name'], '/runs/', workflow()?['run']?['name'])

It builds the run's address from the flow's own details, using the workflow() function that Microsoft's error-handling guidance also uses.

Include the error message

To say which step failed, add a Filter array step inside Catch, before the email. This is the approach Microsoft's guidance describes, using the result() function:

  • From (as an expression): result('Try')
  • Condition: left side, as an expression, item()?['status']; operator is equal to; right side Failed

Then in the email body, insert this expression for the first failed step's name:

first(body('Filter_array'))?['name']

If you renamed your Try scope, use its new name inside result('…'), with underscores in place of spaces.

A suggested alert email

SubjectFlow failed: followed by the expression workflow()?['tags']?['flowDisplayName']
BodyWhich step failed (the expression above), the time it failed (the expression utcNow()), and the run link.

Test it

Before relying on it, make the flow fail on purpose. For example, temporarily point a SharePoint step at a list that doesn't exist, run the flow, and check that the email arrives and the link opens the failed run. Then put the step back.

Common mistakes

  • Catch inside Try. If Catch sits inside the Try box, it can't react to Try failing. It must be directly below.
  • “Is successful” left ticked on Catch. Then you get an alert on every run, including the ones that worked.
  • No Terminate step. The run history then shows green ticks for runs that actually failed.
  • Alerts to one person. If they're on holiday, nobody sees it. A shared mailbox or a Teams channel is safer.

Get this built into every flow

Flows fail silently by default, which is why AutomateAlong suggests a failure alert for every flow it designs and puts it where it actually catches the failure. Describe your automation and you get every step, the value for each box and readiness checks before you build. Free to start, no card needed.

Sources

Build your flow with every box filled in. Describe what you want in plain English and AutomateAlong designs it, then walks you through each step in Power Automate with the exact value to paste. Open the Holiday request approval template · Describe your own flow · Free, no card needed.

More guides

AutomateAlong is independent and isn't affiliated with Microsoft. Microsoft and Power Automate are trademarks of the Microsoft group of companies.