Getting popup after exception

Hi all,

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

Hi @Learner007

Have you defined something in your catch bloc?

Are you catching system exceptions? Can you show your catch block?

If you enable exception catching, it won’t show the pop up

Please note: empty catch block doesn’t catch anything, you need to add exception types you want to catch.

Hi @sonaliaggarwal47
In catch i enabled system exception and I’m using a log message in catch block as system.exception along with that using Throw

I ran the bot only by keeping log message also still I’m getting the error popup

@Learner007

Please remove the throw. Popup is showing because you are throwing it again after catching.

Also catch simple exception type also. Sometimes, if exception is not exactly system type it won’t get caught.

@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.

Can you please show me screenshot of your workflow?

Also, by any chance, are you running in debug mode?

In debug mode, if exception comes, flow stops right there.

Please run instead of debug if using debug right now

@sonaliaggarwal47

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

@Learner007

I think it would be better if you can show me screenshot of your workflow.

Also have you put try catch inside the flowchart or flowchart inside the try catch block?

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.

@Learner007,

Add global exception handler to ignore any error in your code.

Hi @sonaliaggarwal47 , @ashokkarale , @postwick

I’m just sending screenshot of my code.


@ashokkarale @ashokkarale

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

@Learner007,

Can you show the code in GlobalExceptionHandler? Let’s see how it’s configured.

Try removing / disabling global exception handler from your code and run

Go to project panel

Hi @sharazkm32

I don’t have project panel in Studio X. If i need remove means i need to delete it in project folder

Try Catch is a developer option in StudioX

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

@ashokkarale

Sure, let me try that

Bro I am able to reproduce this issue in StudioX

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.