Exception Business

Hi,
I am just studying and have a test run on my queue and automation job, however I got the exception of Business, automation does not go ahead.

How I remove this business rule here?

@Xiaowei_Li

In your automation where ever you are using throw with business rule exception need to remove it

Cheers

Hi @Xiaowei_Li

Few questions

  1. is it failing due to business exception or system exception. Business exception is something you choose to throw based on certain data errors or conditions not met scenarios. System exception is something that automatically happens whenever bot is unable to find some element it’s trying to find or when a variable is not initialized but we are trying to use it and many more such scenarios.

So, if you have not configured any exception to be thrown specifically and bot is still throwing the exception, it’s a system exception.

Another way to check if a queue item is failed with a business exception or system exception, please open any of these failed queue items by clicking on 3 dots at th end of the queue items and selecting ore details. Then Scroll down to see the failed reason.

Now if it’s confirmed that it’s a system exception you can consider following approaches

  1. have defies enabled for your queue. So when a system exception occurs it is retried again.

  2. fix the error that is causing this exception.

  3. Not recommended but you can try for learning purposes - surround the block that is causing this exception with a try catch block and catch all system exceptions and not throw. That will let bot move further but it will most likely fail at next step as next steps may be related to the step that’s failed.

Hope this helps.

Regards
Sonali