
First we will look into handling errors on the action level. Each actions we can handle potential errors.
Double click on the Convert text to number action.
Click on the On Error button.
Currently the default error is set to Throw error.
The disadvantage of throw error is that it stops the flow from processing the remaining items.
We want to process all of the items and jump over the invalid items.
Click the Continue flow run button.
Leave the default for Exception handling mode go to next action.
The action process all of the items and skip over invalid items.
Click the save button.
Click the play button to see how the flow run without any errors.
Now we want to see when errors occur instead of skipping invalid items.
Double click on Convert text to number action.
Click the Throw error button.
Click new rule button.
Click set variable option.
Change New variable name to Transaction result.
Type the following text in the to text field on the right side of the Transaction Result variable.
Business Exception - ProductA is not a valid number format.
Click the save button.
Click the play button to see the flow stop at the third item and log the status of the error into the Transaction Result variable.
What you'll learn
Identify and categorize various types of errors and exceptions in automation workflows.
Implement action-based error handling for specific responses to individual actions.
Utilize block-based error handling for centralized management within action blocks.
Handle system application exceptions from tools like Excel and web browsers during automation.
Course Description
Errors and exceptions are common occurrences in automation, and their proper handling is crucial for ensuring the reliability and resilience of your workflows. In this course, you will dive deep into the techniques and best practices of error and exception handling specifically tailored for Power Automate Desktop.
Starting with an introduction to the importance of error handling, you will learn how to identify different types of errors and exceptions that may arise during automation. You will explore action-based error handling, where you can configure error actions for individual actions to define specific responses when errors occur. Additionally, you will discover block-based error handling using the On block error action, allowing for centralized error handling within a block of actions.
The course also delves into system application exception handling, where you will learn how to handle exceptions thrown by system applications such as Excel or web browsers during automation. You will explore strategies to recover from system application exceptions and ensure the smooth execution of your workflows.
Through a combination of theoretical explanations, practical examples, and hands-on exercises, you will gain the skills necessary to implement error and exception handling effectively. By the end of the course, you will be equipped with the knowledge to optimize your automation workflows and handle errors with confidence.
Whether you are an automation enthusiast, a Power Automate Desktop user, or a business professional seeking to streamline your processes, this course will empower you to create error-resilient automation solutions and unlock the full potential of Power Automate Desktop.