In studio x I’m running a process. When any exception comes it’s displaying a popup of that error instead of ending bot. How to handle this popup. I don’t want any popup. If any exception comes it should handle and end the process. I’m using a flowchart activity and inside that i built my code and that flow chart is surrounded by try catch
@sonaliaggarwal47 i have tried without using throw also. It’s same. I have tried all most all options in catch but still it throws exception with a popup. Even i tried without using try catch also. Still it’s shows error with popup.
I’m running in the process in RUN mode
I understand 1 thing when i use the try catch in single activity level it’s working fine it’s not giving any popup.
I’m getting only this popup when I used it for flowchart. Inside the flowchart activity i have written my code it’s a 30+ activity code. When I’m trying to handle the exception in flowchart activity level then only I’m facing this issue. In case if any activity fails inside flowchart it’s picking that error but giving me this popup also
You don’t use a Throw in the Catch block. The Try/Catch catches exceptions that are thrown (either by a Throw activity, or from a failed activity) within the Try and then the Catch block executes.
When I run the code as individual activity like this it’s working fine. I’m getting issue only with that flowchart because i have multiple activities inside that flow chart.
I have inbuilt global exception handler inside my process folder
Ideally - the citizen developers are expected to run task automation using StudioX without try catch block. Let me convert to studioX and see if it could reproduce the error
Mean while - try deleting / moving the xaml to a different place and give a run
I think it is a limitation of StudioX. Some compatibility issues are there with Try catch and flow chart
Better to check with UiPath support team. Behavior is same in my machine as well. May be it is expected as Try catch is not suggested by UiPath in StudioX
I ran the bot by deleting global exception handler. It’s not giving any popup now.
I have a question. Is it ok to remove the global exception handling. Will it give any impact in my future runs.