hacky
(NotHacker)
June 12, 2025, 9:34am
1
If I am having to use many assign activities to generate the LogFile (string Variable) like below:
Can I instead use Multiple Assign activity to perform the same operation: PFA:
I could be wrong but I wanted to check with you guys: “I notice that we will no longer be able to trace the activity specific error (if any)”
Please Help. EXPERTS : @Sanjay_Bhat , @prashant1603765 , @adi.mehare
Parvathy
(PS Parvathy)
June 12, 2025, 9:39am
2
Hi @hacky
You can use Multiple Assign activity. But, you are right, when you use Multiple Assign activity you won’t be able to find out in which variable you faced the error.
Hope it helps!!
Hi @hacky
Yes, you can use the Multiple Assign activity to perform the same operation as several individual Assign activities.
However, if an error occurs within one of the assignments:
You won’t be able to identify which specific assignment line caused the failure just by looking at the activity name in logs or the error source.
That said, the exception message will still include the expression or variable that caused the error, which can help in identifying the root cause.
Hope this helps!
adi.mehare
(Aditya Mehare)
June 12, 2025, 9:51am
5
You can use String.Format function to do it in one assign activity like
LogFile = "Some Log Format with TimeStamp:{0}, Variant Name:{1}, ReportingDate: {2}, you can add more similarly"
in next assign activity
LogFile = String.Format(LogFile, TimeStampVariable, Variant NameVariable, DateVariable.ToString)
You can use Add Log Fields activity allows you to add key-value pairs to the robot logs, which will appear in Orchestrator logs or the Output panel in UiPath Studio.