How to put business rule exception in flow decision?

Hi,

its my first time trying to make a flowchart workflow. i just want to ask
how to throw a business rule exception when the flowchart decision is false.
image

i feel shy showing my work, please dont laugh at it :stuck_out_tongue:

1 Like

@bri

Is this the one you are looking for ?

image

Else you can assign the exception using assign activity

Depends upon your condition.You can use ThrowException activities to throw BusinessRuleException @bri

cheers :smiley:

Happy learning :smiley:

1 Like

Hi, at the false side of the decision flow
use 'Throw’activity
And in the throw write as
New uipath.core.businessruleexception(“your exception message”)

i will try this @vinay_reddy. will get back.

Sure , Happy Automation
Cheers

1 Like

@vinay_reddy, i hope this throw will not stop the robot while running? it will just add log and continue to next item?

1 Like

In this case , use try catch inside for each row loop
Then use this throw at decision box
At the catch block just catch the exception , don’t use throw

im confuse :frowning:

for If decision and flow decisions, log message can be used. Business Exception vs Application Exception