BusinessException doesn't want to assign?

image

Hi
May i know at which activity this error comes and a screenshot of that activity pls
Cheers @Soudios

1 Like

Fine
May I know What was mentioned in TO property of that assign activity
Don’t mention BusinessException as a variable name as it is a Keyword
Instead create a variable of it and then assign as nothing

Cheers @Soudios

First create the variable of type (UiPath.Core.BusinessRuleException ), then assign it.

Maybe its because in my throw is “new BusinessRuleException” ??

image

The first part seems ok now after you have declared the variable.
However if you have a try catch logic you must define them. the compiler is expecting the catch block.
Like below:
image

On the second screenshot, i guess that is where you have thrown the exception based on your previous check which is fine.

thank you, but how can i add BusinessRuleException on Catches plz ?

in the catches, exception section browse and search for UiPath.Core.BusinessRuleException

image

Then add your assign.
image

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