Best practices Try Catch

Hi,
What is the best practice for try catch.

Can I place one try catch enclosing whole of the sequence?

In my sequence, I am reading data, processing data, writing data.

If possible, please provide me an example template. Thanks for your efforts.

Hi @A_Learner

Have a look on the documentation

https://docs.uipath.com/activities/docs/try-catch

Regards
Gokul

Have a look on the thread @A_Learner

Regards
Gokul

C# Corner has a great guide on Exception Handling and Logging.

Kind Regards

Yes we ca put it in Try Catch

Here is the sample workflow for your reference

Sequence.xaml (9.2 KB)

Regards
Gokul

You can surround whole sequence with try catch if the expected exception is the same for whole sequence. You can surrround activities with try catch one by one as well.

Thank you for the excellent reference.

Thank you @Gokul001

Thank you, @Zeki_Berk_Gokkaya

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