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:
Sorry for confusion with Screenshot I shared. Actually Exceptions (like ApplicationNotFoundException) configured currently are not from “UiPath.UIAutomationNext.” parent they are from other exception parent group.
Current issue is that few exceptions which UiPath is throwing are not in list of Try block for e.g.
UiPath.UIAutomationNext.Exceptions.InvalidNodeException
UiPath.UIAutomationNext.Exceptions.ApplicationNotFoundException
UiPath.UIAutomationNext.Exceptions.UiAutomationException
So I am not able to use them in Try block and template stops there.
There is one more exception which is not available in list of exceptions in Try Catch Activity:
UiPath.UIAutomationNext.Exceptions.NodeNodeFoundException
Can you try adding a variable of the data type UiPath.UIAutomationNext.Exceptions.NodeNotFoundException in your workflow that has the try catch and then see if it becomes available in the list of exceptions you can catch?
If it also cannot be added as a variable then your dependencies seem to be wrong.