UiPath Try Catch - Full Tutorial From Start to Finish
This UiPath video tutorial shows how to use the Try Catch activity in UiPath. We use the Try Catch to handle exceptions and to do extensive logging. The Try Catch is especially helpful when we create transaction-based workflows (like the UiPath REFramework), and we want the robot to continue when we encounter errors/exceptions.
📁 Download the course materials: https://andersjensen.org/try-catch-and-exceptions-in-uipath/
You could also watch:
🎥 UiPath REFramework (1-hour Full Tutorial with extensive exception handling): https://youtu.be/LP5y51_n6BY
🎥 UiPath Try Catch - an easy guide: https://youtu.be/ynZ79KZ_Mo0
👪 My Facebook Group where we solve UiPath problems and chat around automation in general: https://www.facebook.com/groups/1817369781750298
0:00 What is a Try Catch activity in UiPath
The Try Catch helps us to handle errors and exceptions. It's advantageous when we create transaction-based workflows, just like we do in the UiPath REFramework. Another benefit is that logging is made very easy. Make sure to be active yourself to learn the most. Download the course materials: https://andersjensen.org/lessons/try-catch-and-exceptions-in-uipath AND have UiPath open and copy what I do. There is no magic to the Try Catch. In the Try, we put in our chosen activity (/activities). If an exception occurs, we can define, what will happen using the Catch. Typically we write a log message.
1:28 Try Catch Use Case
We go through a simple exception handling Try Catch example, where we work with transactions and apply some forced exceptions to go through the different exception types and how we handle them. Read the Excel sheet from the course materials and use a For Each Row to iterate through each transaction. For each transaction, we'll take the data (here just a number) and apply it to the system application (here the Windows calculator).
8:47 Forcing an Exception
We force an application exception (selector not found) in order to see, how easily we can handle this with the Try Catch.
10:18 Try Catch
Try: We try an activity and if there is an exception, we define what we want to do in the Catch
Catch: In the Catch we define what we want to when the exception occurs. We can separate each exception type.
Finally: Activities that will happen, when either the activity runs without exception(s) or an activity has thrown an exception and that has been caught in the Catch.
15:00 BusinessRuleException
The Business Rule Exception is used, when we have errors with the data (incomplete like missing a surname, completely missing, outside of boundaries, or general data validation). In this example, we force a BusinessRuleException by making invalid data in one of our transactions.
18:24 Throw activity
We can manually throw exceptions as well. Usually, it's done when we validate data and will throw a BusinessRuleException, when something is wrong.
Connect with me:
👥 Facebook - https://www.facebook.com/andersjensenorg
🎮 Discord - https://discord.gg/d8KQpTUvFD
💼 LinkedIn - https://www.linkedin.com/in/andersjensens
💌 Email Newsletter - https://andersjensen.org/email-newsletter
📷 Instagram - https://www.instagram.com/andersjensenorg
#uipath #rpa #uipathcommunity
Видео UiPath Try Catch - Full Tutorial From Start to Finish канала Anders Jensen
📁 Download the course materials: https://andersjensen.org/try-catch-and-exceptions-in-uipath/
You could also watch:
🎥 UiPath REFramework (1-hour Full Tutorial with extensive exception handling): https://youtu.be/LP5y51_n6BY
🎥 UiPath Try Catch - an easy guide: https://youtu.be/ynZ79KZ_Mo0
👪 My Facebook Group where we solve UiPath problems and chat around automation in general: https://www.facebook.com/groups/1817369781750298
0:00 What is a Try Catch activity in UiPath
The Try Catch helps us to handle errors and exceptions. It's advantageous when we create transaction-based workflows, just like we do in the UiPath REFramework. Another benefit is that logging is made very easy. Make sure to be active yourself to learn the most. Download the course materials: https://andersjensen.org/lessons/try-catch-and-exceptions-in-uipath AND have UiPath open and copy what I do. There is no magic to the Try Catch. In the Try, we put in our chosen activity (/activities). If an exception occurs, we can define, what will happen using the Catch. Typically we write a log message.
1:28 Try Catch Use Case
We go through a simple exception handling Try Catch example, where we work with transactions and apply some forced exceptions to go through the different exception types and how we handle them. Read the Excel sheet from the course materials and use a For Each Row to iterate through each transaction. For each transaction, we'll take the data (here just a number) and apply it to the system application (here the Windows calculator).
8:47 Forcing an Exception
We force an application exception (selector not found) in order to see, how easily we can handle this with the Try Catch.
10:18 Try Catch
Try: We try an activity and if there is an exception, we define what we want to do in the Catch
Catch: In the Catch we define what we want to when the exception occurs. We can separate each exception type.
Finally: Activities that will happen, when either the activity runs without exception(s) or an activity has thrown an exception and that has been caught in the Catch.
15:00 BusinessRuleException
The Business Rule Exception is used, when we have errors with the data (incomplete like missing a surname, completely missing, outside of boundaries, or general data validation). In this example, we force a BusinessRuleException by making invalid data in one of our transactions.
18:24 Throw activity
We can manually throw exceptions as well. Usually, it's done when we validate data and will throw a BusinessRuleException, when something is wrong.
Connect with me:
👥 Facebook - https://www.facebook.com/andersjensenorg
🎮 Discord - https://discord.gg/d8KQpTUvFD
💼 LinkedIn - https://www.linkedin.com/in/andersjensens
💌 Email Newsletter - https://andersjensen.org/email-newsletter
📷 Instagram - https://www.instagram.com/andersjensenorg
#uipath #rpa #uipathcommunity
Видео UiPath Try Catch - Full Tutorial From Start to Finish канала Anders Jensen
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
GPT and Power Automate Desktop Advanced Use Case: Sentiment Analysis & Web ScrapeCreate text with GPT in Power Automate Desktop - Full TutorialElectroNeek - The AI-Powered RPA Platform with Easley AI & IntegraBotsHuge Power Automate License News 😮Power Automate Desktop: Best Practices for Advanced UsersAdvanced Power Automate Desktop - Microsoft Joins LIVE 🎤😍How to use Power Automate AI Copilot - Beginners tutorialIT'S HERE: Work Queues in Power Automate - Full TutorialAdvanced Error and Exception Handling in Power Automate Desktop - Complete TutorialInstall SQL Server Management Studio in 2 minutesAI-based RPA is HERE! Aura Digital Workforce Beginners Guide 🤖Power Automate Desktop & SQL Server Management Studio - Full TutorialHow to Install the Contoso Invoicing ApplicationHow to do Invoice Processing with botminds.aiAutomate SQL Databases with Microsoft Power Automate DesktopHow to Get Started with SQL Server Management StudioHow to Build a Search Engine for Your DocumentsRun Desktop Flows From Power Automate CloudAdvanced Document Processing with botminds.aiIt's easy to Schedule Power Automate Desktop Flows 😎💯Scheduled Power Automate Desktop Flows from Cloud