I can’t able to apply Business Exception in my Framework model. I am not sure where i was going wrong Worried: . Can any one help me out on this please ?
All we know that, Process Transaction already Surrounded by “Try & Catch”. So, I have used the below format, (Inside Process Transaction)
I have used If Activity, under then section I have gave my Condition and in else Section i have give “Throw” Activity. So, Flow is getting stuck there.
If you are throwing business exception in process transaction try block, it will be caught in catch block and in the finally block, robot sets the transaction status as “Business exception”
Are you using throw activity in the catch block? If yes, the workflow stops with an error as it’s throwing error from catch block and there’s no upper level try catch block to catch it.
If I understood your question properly, this should help you. If not, can you elaborate your question please? I’ll try to help you more
@Surya_Narayana_Korivipadu “Are you using throw activity in the catch block? If yes, the workflow stops with an error as it’s throwing error from catch block and there’s no upper level try catch block to catch it”
Yes… The Workflow is getting stop there until unless i click the “Continue” that is the main issue but what i was expecting is it should move to the next element as throwing business exception.
In this case, if you are debugging the workflow, you’ll see the continue button. If you are execute the process via Run button or from uipath assistant or from orchestrator, there won’t be any continue button, process directly throws error and stops execution.
If you want to continue after throwing exception, you should surround the part of your workflow(whichever sequence contains throw activity) with a try catch block, catch it in the catch block and write remaining code after finally block.
If you are using throw activity in the catch block and still if you want to continue execution, then this try catch block should be surrounded by another try catch block which catches the exception from this throw activity. See below screenshot for clear understanding:
whatever is placed in parent finally block or after parent finally block, those activities execution will continue even after your business exception