Not found UiPath.UIAutomationNext.Exceptions.NodeNotFoundException in TryCatch Activity Exception List

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:

  1. Main.xaml (Contains the TryCatch activity)
  2. 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?

@Hiren_BlueEra

I see those in your screenshot as well and when I try to configure in community as well…can you please elaborate what is missing?

cheers

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

@Hiren_BlueEra

All of those exceptions are present…try to update your system [ackages and check

I could see all of them

cheers

Mine is 24.10.2.0

@Hiren_BlueEra

it looks like some issue frm your side…tried the same version and I am able tos ee all

can you try to delete the package files from .nuget folder and check by reopening the project

cheers

Hi Anil,

I just tried by deleting .nuget folder and after opening project it downloaded new folders but still issue remains same.

One thing is clear that it shows all exception in your setup so issue is local at my end.

How do we force UiPath to download all the packages from scratch?

@Hiren_BlueEra

By removing .nuget and letting it redownload only

@loginerror can you check this

Cheers

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.

I am able to add data type as you suggested and kept the scope of variable to Main Sequence.

After doing this also It is not available in list of exception in Try & Catch block.

After upgrading entire UI Path installation it is finally showing exceptions. Thanks a lot for your help.