Hi,
How to store or pass activity display name in a variable?
Thanks in advance!
Thanks,
Riya
Hi,
How to store or pass activity display name in a variable?
Thanks in advance!
Thanks,
Riya
Hello @Riya1 Can you explain your requirement in detail. If you want to know the activity/display name during exception then you can say as exception.source in a catch block
you use the verbose level log to find it.
you can use the "Display Name " attribute of file
Refer this →
“DisplayName”:“AssignHello”
1. you can read the xml in text file .
2. Use Display name Attribute to fetch the activity name.
activity display name you can’t pass from the variable it should be hard code only
Hi @ushu ,
Yes, But sometimes it’s not working properly. sometimes it gives like Exception Source: UiPath.UiAutomation.Activities
Thanks
Refer the Xml .
it will give you the collection of activity name in your project and use verbose level of log .
Main.xaml (8.6 KB)
hey @Vaibhav_Rajpoot_17 ,
No I don’t want collection of activity name in my project. I just want to know the activity/display name during exception in a catch block when exception will occur.
Thanks,
Use debug mode
use verbose level of log. if Exception is caught in any activity , it will logged in log file.
@Riya1 Sometimes it is not giving the activity name since you have not invoked that workflow. Try invoking that workflow, it should work
How to do in production? Please explain.