Product : Studio Community Edition (Studio 2024.10.4)
I am using a TryCatch activity to rerun the template if selected exceptions occur while running it.
There are two files:
- Main.xaml (Contains the TryCatch activity)
- Process.xaml (Contains the main template)
The setup is working perfectly without any issues. The only problem is that when an exception from “UiPath.UIAutomationNext.Exceptions” occurs, the following exceptions are not available in the list, so we are unable to configure them in the TryCatch block:
- UiPath.UIAutomationNext.Exceptions.NodeNotFoundException
- UiPath.UIAutomationNext.Exceptions.ApplicationNotFoundException
- UiPath.UIAutomationNext.Exceptions.UiAutomationException
The template is not restarting automatically when these exceptions occur because they are not configured in the TryCatch block.
How do we add such missing exceptions in TryCatch block?