Boolean OUT-argument resets to False after BusinessRuleException in Process

Hello everyone, I am facing an issue where my boolean out-arguments are being reset to False when I throw a BusinessRuleException in Process.xaml.
Just before throwing the exception, the process sets a boolean out-argument to True. However, when the robot and data are outside of the Invoked Workflow of Process.xaml, it seems to be reset to False.
Current package version of UiPath.System.Activities: 24.10.7

Things I have checked already: reading other articles of devs who face the same issues, checked the direction of the argument (yes, it has the Out-direction), look and search for any variables that have the same name that might cause this misalignment and set the variable outside of Process.xaml to False again, and I also have deleted the argument and associated variable to make sure there is no existing reference - and then created a new argument and variable.

It seems to me that this is a Studio bug rather than wrongly coded. My (workaround) solution would be to use a DataTable to reference the values outside of my invoked workflow. Those boolean values will be converted to strings in order to be passed succesfully to the DataTable.

If anyone has any experience with the same issue or has a robust solution for this problem, please reach out via this topic. Thanks in advance!

@tim.van.lokven1

It is expected behaviour

any out argument values would be reset when exception is thrown..

there are few exceptions like datatable,array etc which are persistent

but I would say in the new studio its better to declare it as global variable so thaat it can be read and/or modified anywhere in the process

cheers

1 Like

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