cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wiredupjax
Resolver I
Resolver I

Error handling when entire flow fails

Hello PA'ers,

 

I want to update the status of a SharePoint list item when the flow fails.  How do I update an item if the entire flow fails without creating a branch at every step?


I looked at: https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Error-handling-when-action-fails/idi-p/1652... to no avail.

 

Thanks, JS

1 ACCEPTED SOLUTION

Accepted Solutions

@wiredupjax 

Right, so up at the top (just after your trigger as they can't be included in a scope), click Add an Action and look for scope.

 

Add that as your first step after the trigger, and then start dragging the rest of the actions into the scope.

 

Once most of the flow is inside the scope, you can now add the stuff that you want to do if it errors out after (outside of the scope), as an example, maybe you have your trigger, a scope with the whole flow in it, and then a Send eMail action.

 

On that Send eMail action, you do Configure run after, and select Error or Timed out for the previous action (which will be the whole-flow scope).

 

Here's a simplified version.  Inside my scope are all the steps for my flow:

20200611a.PNG

 

Keep us posted.

-Ed

View solution in original post

3 REPLIES 3

@wiredupjax 

Easiest thing might be to throw the whole thing in a Scope and then using Configure Run After on that.  Here's an article introducing that:

 

Using "Run After" as a Condition in Power Automate / Flow

 

Keep us posted.

-Ed

 

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

@edgonzales,

Thank you for the quick response.

 

After reading the article, this only addresses a particular step... not the entire flow.  I'd like to update a SharePoint item if ANY step fails. See graphic:

error handling.jpg

 

@wiredupjax 

Right, so up at the top (just after your trigger as they can't be included in a scope), click Add an Action and look for scope.

 

Add that as your first step after the trigger, and then start dragging the rest of the actions into the scope.

 

Once most of the flow is inside the scope, you can now add the stuff that you want to do if it errors out after (outside of the scope), as an example, maybe you have your trigger, a scope with the whole flow in it, and then a Send eMail action.

 

On that Send eMail action, you do Configure run after, and select Error or Timed out for the previous action (which will be the whole-flow scope).

 

Here's a simplified version.  Inside my scope are all the steps for my flow:

20200611a.PNG

 

Keep us posted.

-Ed

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,337)