Showing results for 
Search instead for 
Did you mean: 
New Member

How to get output from failed action

I have a send request action that fails - 

BadRequest. Http request failed: the server did not respond within the timeout limit..


In my next action, I am sending an email notification of a failed request, and want to include the error information in the email itself, but I get this error on the Send Email action -

InvalidTemplate. Unable to process template language expressions in action 'Send_an_email_(V2)' inputs at line '1' and column '21097': 'The template language expression 'outputs('External_Request').error.code' cannot be evaluated because property 'error' cannot be selected.'.


I would try to look at the raw output of the External_Request, but I cannot do that in a failed flow. What would be the proper way to get the error and the error code for the outputs of a previous action? If I peek the code this is what I see 




Community Champion
Community Champion

You can set a parallel branch under HTTP. Then Configure run after for both the actions. For Send Email you can configure on success. Then in the other branch, you can use compose to capture error message.  Try following expression ..






Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Helpful resources

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.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (2,239)