Throw Business Exception

Hi,
In my REFramework, Process I am evaluating an if condition and throwing a Business Rule Exception. This Process is in a Try Catch block. I am getting an error “Business Exception” Faulted. What can I do here? Please provide a code sample how to fix this? Thank you,

Can u send screenshot on what error and where do u get the error

@A_Learner

Can you please show some screenshots

What are you doing in catch block? Are you rethrowing?

Also in throw did you write New BusinessRuleException("Message")

Cheers

Using RE Framework.
This Process is in Try/Catch.
In my Process, if no data, throw new UiPath.Core.BusinessException(“No data found”)
This Business Exception getting faulted in debug mode. It stops over there and I need to keep clicking Continue until it goes to the main process.

Not sure if I should not run business exceptions in debug mode?

Please advise. Thank you.

@A_Learner

In debug mode the bot will stop at the throw activity and you will have to click on continue. This will not happen if run normally.

Also, in debug mode you can enable Continue on Exception. So that execution odes not stop there.

1 Like

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