Question about using a sequence in a try, catch

Hi guys, I have a question about that.

If I put a single activity in a try block, it works well.
And I want to use multiple activities by sequence in a try block.
But if I do this, the try block does not work and the catch block does so.

How can i use a multiple activities in a try block?

1 Like

Hi @kang0068
You can use sequence within another sequence in try block

Thanks
Ashwin.S

hello @kang0068

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

What exactly do you want to do @kang0068 ?

You can use multiple activities in a Try Catch Block Activities.!

cheers :smiley:

Happy learning :smiley:

Hello @kang0068,

Try-Catch is used to handle exceptions.
If you are passing multiple activities in try block, failing of the activities in the try block will result in executing catch block.
I guess one of the the multiple activities you have mentioned have an exception. Hence catch block is getting executed.
please surround each activity with separate try-catch block for better workflow execution.
Else you can log exceptions in catch block to know where exception has occurred.