Global Exception Handler With Database

I want to use global exception handler in my small project for handling errors can someone help me to fix this i am happy if you can. Thank in advance
RpaDemoWithDB (2).zip (12.6 KB)

Hello, @imumeriqbal - Can you describe exactly what issue you’re encountering when using the Global Exception Handler?

issue is a know what is global exceptional handling but I don’t now how to use like how I can manage database connection with global exceptional hander

@imumeriqbal
Upon encountering an exception, the Global Exception Handler initiates a process of retrying the impacted activity at least three times and records the name of which action failed. Should the same exception persist even after three retries, the execution will halt in the level of activity that raised the exception.
Regards

@michael.zura hi can you check my file and add the global exceptional handler please this file has 4 to 5 activities only.Please

Thanks

@imumeriqbal
In the Design tab part of the Ribbon, select New > Global Handler. The New Global Handler window opens. Type in a Name for the handler and save it in the project path. Click Create, a Global Exception Handler is added to the automation project.
Regards

@michael.zura I already created but in my case nothing happen if I close the tab or anything even my bot did not go from main file to global exceptional handler I am too confuse

@imumeriqbal
Run file, it will not go to exception in Debug Mode.

Regards

can we connect on a google meet for 5 min please

@imumeriqbal
I cannot, I am at work. Here is a simple process I made to trigger an exception. Leaving it at default settings, it will try 3 times and stop at exception.


image

yes exactly but in my case you can see my bot stay on continue and stop state nothing happen

i am not adding anything after using global exceptional handler but just disable 2 activities and try to run but nothing happen anything

@imumeriqbal
You are running in Debug mode, I stated earlier, in Debug mode exception will not catch. Run normally.

Thank you for pointing out my issue its work. Thank you once again

1 Like

@michael.zura in any chance if we what to show friendly message on screen expect system generated error
like when we run the file system show this error message
e2

what i want to print the message only like this
e1

how I can do? Thanks in advance

@imumeriqbal
You could use a Try/Catch to display your custom message, just select Continue on Error so GEH does not handle the error.

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