Get name error

Hey @Stef_99 ,

Great, now you have the data you need. Create an Argument with the direction ‘Out’, You can assign the exception object from the catch block inside the workflow which you are invoking.

Now in Main.Xaml, from where you are invoking it from Create a variable of type exception and assign in Import Arguments of the ‘Invoke Workflow’ Activity.

Now using this exception variable you should be able to get the ‘exception.data’ in the ‘Main.xaml’.

Hope My reply helps you.!

Happy Automating…!!

Thanks,
Gautham.

Now exception.source show UiPath.IUAutomaionNext.Activies but not show acitivity name that error.

and I key in immediate exception.data —> It no data.

Please guide me for solve it.

Hey @Stef_99 ,

I Could see these are log messages from the module where the error is happening. You need to use Rethrow in the module where error is happening and catch the activity name and description of the error from the Parent flow where you are invoking from just like in the sample i had shared earlier.

@prasath_S , Could you please check this thread and provide an insight.

Happy Automating…!!

Thanks,
Gautham.

@Gautham_Pattabiraman

log message as below.

Can you sample flow me?

Hey @Stef_99 ,

Check this Sample , You need to have the Rethrow in the module where the error is occurring and get the activity name and description from the module where you invoke the module throwing an error.

@Gautham_Pattabiraman Right?

image

Yes and here the log messages can be removed to avoid confusion keep them in main.xaml’s catch block

@Gautham_Pattabiraman In side try = main flowchart
and catch process send mail error

Right?

image

Yes Correct now in main.xaml , You will get the activity name using exception.Source

and Description using exception.ToString / Exception.Message

1 Like

@Gautham_Pattabiraman I have last question

If I want to get sub flow that error.

How to get it?

Hey @Stef_99

Unfortunately not possible.

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