cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
olgaoszcz
Advocate V
Advocate V

Get error message for the action 'on failure'

Hi, 

I'm trying to set up error handling in one of my flows. I have 'Create file' action and then 'Exacute strored procedure' on failure. First issue i noticed is if my 'create file' failes but the stored procedure is executed, in the run history it still says Flow was succesfull. I don't think thats informative enought - something still failed and it should be visible in the run history.

failed but successfull.png

You can't just say it run successfully, when one of the steps failed...

Second issue I have is that I have the information on which step of my flows failed but I would also like to get the error message flow provides.

errormsg.png

It would make life so much easier to have the error message avaliable as a dynamic content... Does anyone had a similar problem? Any ideas on how to work around it?

 

30 REPLIES 30
Anja1
Regular Visitor

Hello Power Automate community!

 

As @Pstork1  described, the expression returns an error message if an error occurred within the scope:
result('Name_of_the_scope')

Don't use:  results('Name_of_the_scope')

It took me a while to figure this out myself 😉

 

It is described e.g. here by Alex Shlega:
https://www.itaintboring.com/power-platform/power-automate-scope-action-what-does-it-have-to-do-with...

MichelH
Advocate V
Advocate V

Hi @tapan 

No there is no way to get the error message AFAIK, except by testing all the underlying actions.
This is strange/silly since this 'global' error is often available in the run history outcome.

So while it is there, it is just not exposed to the programable part of flow. 

 

Too bad, maybe you want to put this on the idea list, if not already there.

Your solution got me really close - but the issue may have been system updates that changed the command.  It is not action(), but actions(), and you need the .body. in there.

 

Here is your solution based on current code and a reference link for Docs:

 

Command in [Compose]: actions('{your_action_name').outputs.body.message
 
Here is the link to the Power Automate 'actions' code command (all flow code commands!):
 
Hope this helps others resolve their errors faster.
 
Douglas2021_1-1644341277548.png

 

Note: Set the next action in the flow 'Configure run after' to 
Douglas2021_0-1644341153471.png

 

maxpower45255
Advocate II
Advocate II

One way to get the message/result of the action is to use: body('actionName')['message']. NB: You must replace the spaces with underscores in the actionName.

Hidayati
New Member

{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
null
null
null
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
null
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
null
null
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
null
null
null
null
null
null
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
null
null
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
null
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
{"Message":"error!","Result":"failure"}
Clifferton
Helper I
Helper I

That looks like an incredibly helpful error log /s.

 

Did microsoft recently change error reporting. I used to use the try/catch to ensure that failed operations did not stop my flow, and that the flow did not report as failed, but recently, my flow with try/catch is throwing failure status for flows when the failed action is inside my try scope.

 

Any ideas?

MichelH
Advocate V
Advocate V

Hi @Clifferton
For quite some time now, I wrap everything that can fail in a scope control.
The next component's runafter property makes it finish normally.

Clifferton
Helper I
Helper I

Right, I have a test that might fail inside a scope, with run after set for the following scope. but when it fails the entire flow is marked as failing too. I'll keep looking.

Make sure that after the failure run after scope you add a terminate action set for Succeeded or that you merge the failed scope back into the main flow path.  If the flow ends on a run after failed the flow will be marked as failed.  But you can reset that using a Terminate action.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Clifferton
Helper I
Helper I

Thanks, I didn't have a terminate control in the final scope. I'll see if that works better.

Make sure you set the Terminate to Succeeded.  Its Failed by default.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,971)