Global Exception Handler AND REF

Hello all
im looking at globalException.. i want to call specific flow to report it

[type or paste code here](https://docs.uipath.com/studio/standalone/2023.4/user-guide/global-exception-handler)

what the is the deference between Global Exception Handler and set transaction status on app exception?

we are using REF … what is the best way and where to call my Flow !

Thanks in advance .

Hello @Hazem_Saleh,

In REFramework, Set Transaction Status(Application Exception) applies to the current transaction item when processing fails due to an application or system issue. This is what Orchestrator uses for retry behavior on queue items.

Global Exception Handler is different — it serves as a process-level fallback for unhandled exceptions anywhere in the workflow.

Best practice in REF is to call your reporting flow in the transaction exception path when you want to report a failed item, and reserve the Global Exception Handler only for unexpected errors, cleanup, logging, and final fallback.

Thanks,
Karthik

@Hazem_Saleh

Global exception handler will handle any unhandled exception in your bot. As you are using REF, there is very less chance of exception which isn’t handled already in the framework.

When you want a universal safety layer for the whole project or want to log/handle exceptions consistently everywhere and not using REFramework then only you should be using Global Exception Handler

Set transaction status is used to update the status of the current transaction item to success or failed.

Quick differences summarized with AI

Thanks,
so i need try catch then i call my global handler ! correct!
but in REF i have almost all flow has try catch
can i just call it here for example

im just trying to find the most clear way to call it .

and on item level i can call my reporting flow int the transaction exception path!
Thanks

Hello @Hazem_Saleh,

It’s not necessary to call the Global Exception handler explicitly. If there’s any unhandled exception in your automation, it will be automatically invoked.

Thanks,
Karthik

Thanks alot
now i got it