Pragmatic Works Nerd News

Passing Errors from Power Automate to Power Apps | Low to Pro

Written by Ace Philips | Oct 20, 2026

In this video, Ace Phillips addresses a common issue faced by users of Power Apps and Power Automate: handling errors when a flow fails and no useful information is returned to the user. This guide will walk through the process of displaying meaningful error messages in Power Apps, ensuring users have the necessary information to resolve issues effectively.

 

Understanding the Problem

When a flow in Power Automate fails, Power Apps often receives a generic error message that is not helpful for troubleshooting. The challenge is to pass back more specific error details that allow users to understand why the flow failed and how to address it. Ace discusses the importance of customizing error handling to improve the user experience.

Using the ifError Function

  • The ifError function in Power Apps allows developers to handle errors in their formulas by passing through the error information from one part of the app to another.
  • Ace demonstrates how to use the ifError function to capture and display meaningful error messages to the user.
  • In the app, errors can be passed back from Power Automate through the with function, which stores and processes the flow’s output.

Improving Error Messages

One key point of Ace’s demonstration is customizing error messages. Instead of just showing a generic “error occurred,” developers can create more specific messages based on the flow’s failure. Ace provides examples of how to create tailored responses, such as returning a clear error message when the flow fails due to an invalid animal name input.

Dealing with Flow Failures

In cases where the flow fails due to unexpected input or an issue with the action, Ace advises using a response action in Power Automate. This action is an alternative to the terminate action, as it allows more flexibility in specifying the error response. By using the response action, developers can send a more detailed error message back to Power Apps.

Setting Up Parallel Branches for Better Error Handling

To ensure better control over when errors are handled, Ace recommends using parallel branches in the flow. This setup allows developers to specify different responses depending on whether the flow fails or succeeds. The goal is to provide users with more relevant information, no matter what part of the flow fails.

Improving User Experience with Better Error Responses

  • By leveraging the first error message, developers can pull specific information about what went wrong, such as error codes, messages, and details.
  • Formatting the error response in a more user-friendly way ensures that the message is understandable and helpful for troubleshooting.
  • By fixing common issues and improving error handling, developers can create a smoother experience for users, avoiding vague or incomplete error messages.

Conclusion

Ace concludes by emphasizing the importance of better error messages in Power Apps and Power Automate, highlighting the need for clear, actionable information when something goes wrong. By using the techniques shared in this video, developers can ensure users have the information they need to resolve errors and continue working without frustration.

Additional Resources

If you want more detailed guidance on handling errors in Power Apps, Ace recommends checking out additional tutorials and videos on the Pragmatic Works YouTube channel, or exploring the Virtual Mentoring service for personalized help.

Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power Apps and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.