Remove the 'retry' function from Global Exception Handler?

Hi all,

I’m looking for a way to set the number of retries = 0 for the global exception handler.
I have tried the below methods but it is still retrying:

  1. Even by setting retry criteria to retrycount < 1,
  2. Assigning retrycount = 100 to immediately exceed the limit
  3. Setting both actions in the ‘If’ activity to errorinfo.Continue

The purpose of my global handler is to trigger a python script to run once it fails, I don’t need to retry the failed activity. Is this possible?

Hi @junzhigoh , Welcome back to UiPath Community!

Can you check the config file inside the project folder? In the Constants tab of config file check the value of max retry number.

Hope that might help you.


Try this:

Hi Robin, where do I find the config file? mine just looks like this, inside the
.tmh folder > config.json


Hi Surya,

Thanks for your reply. This method still caused 3 retries to occur :confused:

@junzhigoh inside the project folder you would find data folder. Inside data folder you can find the config.xlsx file of that project.

I didn’t get any retries in my project. I don’t know what’s going wrong with your project. Is it possible for you to share your project files?

Hi @AKM_Robinuzzaman , I only see these 4 folders in the project folder!


Sample (5.2 KB)

Hi @Surya_Narayana_Korivipadu , I have attached a sample workflow that throws an error and then is still being re-tried by the global handler.

Thank you for the replies!

1 Like

There’s a mistake in your global exception handler

Refer my previous post

you should use result = ErrorAction.Abort in the Then block of if condition, there’s no need to put any activity in the else block

Also I suggest you to right click on your SampleWorkflow and then click on “Set as main”

Thank you @Surya_Narayana_Korivipadu , it works well now! :slight_smile:

To understand better, was the main issue with my workflow setting result = ErrorAction.Continue that is causing the global handler to retry?
I realised when I set the RetryCount to be < 5, the handler will retry up to 8 times, does it mean using ErrorAction.Continue will cause it to retry 3 times minimum?

1 Like

Yes. You’ve set result = ErrorAction.Continue. That’s the main issue.

I’m not sure why it retried 8 times. ErrorAction.Continue just throws the error once again, it will not retry 3 times. Instead of using your own variable Retry_Count, try giving errorInfo.RetryCount < 5 in the condition

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.