I’m facing an issue here after upgrading one of our robots to the latest version of UiPath Studio.
All of our projects are FlowCharts invoked through a state machine with a Try/Catch, which allowed us to get the Exception.message and Exception.source accurately and easily.
Unfortunately, since the update, the Exception.source is not getting retrieved correctly anymore. We need this information to be able to debug our projects effectively.
Now, the only info we get from the Exception.source is either System.Activities or UiPath.UiAutomation.Activities but not the name of the activity itself.
It was fixed after the Community version was released. The Community will receive an update once the Enterprise version is released. And that’s just around the corner.
Anyway, if you switch to the Beta channel you should have the fix. Moreover, I kindly ask you, if you could switch on Beta to see if it still give you a wrong source.
@radutzp, I am still getting issue. For exception.source I am getting System.activities instead of the actual activity name. In my case, error occurred in Select Item activity. It would be nice if we get activity name , as it will help in debugging. Thanks.
Did anyone found a fix for this ? I verified this as well and it seems the exception only shows the activity name when we extract the activity in a workflow and put that workflow in Try-Catch.
Then exception.Source shows the activity name which failed inside the Extracted Workflow.
Any chance you could provide a zip of a new project that reproduces this issue? You can then either submit it via the Studio feedback feature as a bug, or attach it here on the Forum and I’ll create a ticket myself
Below is what is expected, but I only get it when i extract the activity as a workflow and then surround that workflow in Try Catch and log the Exception Source in Log message.
Unfortunately, we weren’t able to solve this then from a technical point of view. I’m really really sorry for not coming back to you with the status.
As a workaround, you can add the sequences in an invoke workflow and the exception source should be correctly sent in the try/catch from the parent workflow.
Example:
it seems 2020.10 also has this issue too. exception.source just returns (e.g. UiPath.System.ActivitiesUiPath.Activities) instead of activity description.