Get Name Activity on Cath

bestpractices

#1

Good afternoon,

I would like to know if there is any way that when an uncontrolled error occurs in the flow, I can identify which activity was generated and get its name or selector.

Thank you very much


#2

Hi John,

Unfortunately this cannot be achieved at the moment.

Andra


#3

Please try to log exception.Source within the Catch.


#4

See here an example: Component/Sequence/Workflow Name
As far as I remember it works only in invoked workflows. I’m not sure about Main.xaml. But this is not an issue, Main.xaml should be an invoker and not contain logic.


#5

When I use the Source I get the following: UiPath.Core.Activities


#6

Have you tried running Main.xaml on that sample?