All Content
Effective Error Handling Strategies in Power Automate
Image Source:
Power Automate
Sep 15, 2022 6:00 AM

Effective Error Handling Strategies in Power Automate

by HubSite 365 about Timo Pertilä (Forward Forever) [MVP]

Power Platform Consultant, Microsoft Business Applications MVP

External Blog Post
Citizen Developer

Power Automate

Learn to handle errors with Power Automate! From basic procedures to advanced methods, improve your Microsoft automation skills.

Creating a Power App with data from Excel

In this video, you will learn how to create a canvas app in Power Apps using data from Excel. You can upload an Excel file, create an app, and then run the app created. By creating an app this way, you can get a working app quickly using Excel data, be it from an Excel sheet or table, and then customize the Power App to better suit your needs.

The Microsoft AI Copilot feature can help with Dataverse table creation by suggesting table names, descriptions, data types, and headers even if this information is missing in the uploaded Excel file. When Copilot AI is used, a Copilot card is displayed to indicate the table was generated by Copilot AI. This video also covers the challenges related to this feature, and how to work with complex Excel files (multiple sheets, tables, etc.), use Power Query to completely transform data from Excel, load data to an existing or new Dataverse Table, and build a Power App.

Table of Contents:

  • 00:00 - Get started with converting Excel files with data into Power Apps
  • 00:51 - Create your first App with data from an Excel file with Microsoft AI
  • Copilot
  • 07:16 - Create Power Apps from Excel file with data
  • 08:14 - Challenges with creating Power Apps from Excel
  • 09:56 - Build a Power App with data from Excel transformed using Power Query
  • into Dataverse
  • 18:35 - Subscribe to Reza Dorrani Channel

What Else Can I Learn About Power Apps?

In addition to creating a Power App with data from Excel, you can also create a Power App from scratch. This involves designing the app, and adding necessary components such as buttons, labels, and text boxes. You can also use the App Designer to customize the app by changing its appearance, colour, and size. Moreover, using the Data Connector, you can connect your app to various sources like SharePoint, Dynamics 365, and Common Data Service to get data for your app.

You can also use Power Apps to create automated processes and workflows. With the Flow feature, you can create automated workflows that can be triggered when specific conditions are met. For example, you can create a workflow that sends an email to a user when an item in a SharePoint list is modified. In addition, you can use the AI Builder to create models that can be used to power your app.

Lastly, you can also use Power Apps to collaborate with other users. You can use the App Studio to create and share apps with other users. This makes it easy to manage and share apps with others in your organization. You can also use the App Checker to make sure that your app meets all the necessary standards before you share it with others.

7 days ago — Microsoft's CoPilot AI is here to make your Power App dreams come true. This revolutionary feature allows you to convert your Excel files ...

6 days ago — "Every created app includes screens to browse records, show record details, and create or update records," the documentation states. "By ...

In the Blogpost "How to handle errors in Power Automate", Timo Pertilä discusses the importance of incorporating error handling in complex flows. Initially, he admits, he believed the flows would always prove effective, only sporadically checking for failed flow runs. Nonetheless, he acknowledges that flows can indeed fail, making it essential to integrate error handling tactics.
More on Power Automate

Pertilä subsequently guides the reader through various levels of error handling. Level 1 involves reacting to errors in the flow, Level 2 refines this process for practicality and Level 3 adds an element of aesthetics. In the event of any errors, he recommends the use of notifications and an essential Terminate action. This arrangement ensures the end result of the flow run will be marked as failed, simplifying future identification of issues.

The configurations within this digital process can be fine-tuned to immediately respond to errors. Pertilä recommends using scopes to organize these measures and enforces the flow's reliability using a 'run after failure' principle. Achieving this level of organization within digital processes is both desirable and efficient.

Enhanced Error Handling

Level 2 of this process aims to provide additional functionality to the error handling efforts. Pertilä introduces an accessible workflow expression that permits the operator to navigate directly to a faulty run from notifications. The schema he presents is structured to extract necessary workflow details, thereafter consolidating these variables into a URL that will direct users to the error source.

Such links can be formatted to adapt and perform desirably within various environments, accommodating for potential shifts between platforms. This practical approach is refined further when presenting these notifications via Microsoft Teams. By utilizing HTML, custom URLs can be generated to facilitate a smooth troubleshooting process.

Add an Aesthetical Touch‎

As a creative flourish, users have the option to create visually pleasing adaptive cards using the Adaptive Card Designer. This allows for an aesthetically enhanced delivery of error messages, complete with flow name and a visually appealing and functional button to access faulty runs.
Lastly, the author shares a handy tip on how to deliberately trigger flow failures for testing purposes, vital for newcomers to error handling.

By understanding this critical aspect of Power Automates, users are empowered to preemptively act to diagnosticate and resolve errors, ensuring a smooth operation within their business processes. The methods Pertilä shares offer practical insight into the effective use of Power Automate, facilitating the creation of error-resistant flows that can be visually enriched for an enhanced user experience.

Read the full article How to handle errors in Power Automate

Power Automate - Effective Error Handling Strategies in Power Automate

Learn about How to handle errors in Power Automate

The Microsoft Power Automate platform offers robust capabilities to enhance workplace productivity, including error handling. Even the most complex, business-critical flows can occasionally fail, but with some simple precautions, we can mitigate these disruptions.

In this article, we'll lay out a guide to Power Automate's in-built error handling. We'll look at three different levels:

  • Level 1: Basic error handling setup for beginners.
  • Level 2: Advanced features to make your error management more practical.
  • Level 3: Customization techniques for making your errors more visually appealing.

At Level 1, the simplest way to react to a failing flow action is by utilizing the "Configure run after" settings. By default, an action runs if the previous action was successful. What we can do to handle failures is add the desired "after failure" actions inside a new scope. Scopes come in handy for grouping actions, making your flows easier to manage. For instance, the Terminate action can be included so the flow can be identified as failed in the run history.

Level 2 handling is a little more advanced and involves making use of the workflow() expression. This allows you to directly open the failed flow run from the notification. Through the use of the workflow() expression, a URL to the specific flow run can be generated, which simplifies duplicating flows or moving them between environments.

At Level 3, we consider visual error handling. Here, you can use Adaptive Card Designer to create your own aesthetically pleasing adaptive cards. This allows for the flow name and a button to be included to open the failed flow run, catering to both function and form.

If you're looking to experiment with error handling, you might want to intentionally cause your flows to fail for testing purposes. One way to do this is by using IDs that are incompatible with the action you're performing.

For the latest insights on Power Automate, Power Apps, and Power BI, make sure to subscribe to our email newsletter 'Forward Forever News.'

By understanding the importance of error handling in Power Automate and learning the techniques to implement it properly, you can ensure your flows run smoothly and your business operates uninterrupted.

More links on about How to handle errors in Power Automate

Best practices for error handling in Power Automate flows
Best practices for error handling in Power Automate flows ... Getting notifications when your flow has failed because of an error is critical to maintaining ...
How to handle errors in Power Automate
May 30, 2023 — To implement a simple error handling in to your flow, add the desired “after failure” actions inside a new scope (Scope is an awesome action ...


Power Automate errors, handle errors Power Automate, error handling Power Automate, Power Automate error management, fixing errors Power Automate, troubleshooting Power Automate errors, Power Automate errors solution, managing Power Automate errors, Power Automate error handling techniques, Power Automate error resolution.