How to fault bot(job in orchestrator) on business exception

Scenario is i have 5 transactions to process. but if 2nd one fails due to business exception. i would need to fault job and robot will not process next 3 transactions.
tried this:

  1. if i use throw and catch that exception then robot will stop but job stops without an error
  2. Terminate workflow gives “runtime Execution error window” that i don’t want.

so basically bot needs to stop but with faulted state and without any runtime error window. Please suggest if anybody have any solutions for this scenario.

“so basically bot needs to stop but with faulted state and without any runtime error window”

If it’s attended this is impossible. You cannot fault the job and not get an error message prompt.

If it’s unattended you don’t see the error window when using terminate workflow.

Generally you don’t want jobs to fault. Errors should be handled properly and the job stop gracefully.

1 Like