Get Name Activity on Cath

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

Hi John,

Unfortunately this cannot be achieved at the moment.

Andra

Please try to log exception.Source within the Catch.

See here an example: Component/Sequence/Workflow Name - #4 by richarddenton
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.

1 Like

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

2 Likes

Have you tried running Main.xaml on that sample?