Hi,
I tried to use Try-Catch-Finally Scope.System Exception is working well.
I've defined a add new data row (transaction-Dataverse table)at the beginning of Process Transaction.
In Process Transaction scope, I defined Try-Catch-Finally.
For System Exception, any issue with Try Block, I'm able to catch in -Catch Scope.
In Finally Scope , I'm updating the dataverse 'Transaction' table with Success, Exception message accordingly.
Now, I have issue with BE cases.
I have multiple Business validations to be captured(for eg 20 Business exceptions rule which I need to check at various state within Process Transaction-Try scope).
If I've BE on 4th sequence , I would like to bypass the remaining Business Logic (16)in Try Case and would update Transaction dataverse table with BE message.
For that , I tried to implement a 'Terminate' with 'Failed'.But, it stops the flow there itself and skips remaining Catch/Finally state.
Hence, I have to update the dataverse table before Terminate during BE case.
This similar logic needs to be implemented while checking all 20 BE cases.
Is there any way , we can bring the control to catch section when BE failed in particular step?
So, that I can perform updating the transaction table in Finally step.
Get Transaction: Add a new row in Transactions-Dataverse table
Process Transaction
TRY
if BE1 condition false
-update Transactions-Dataverse table
- Terminate
.
'
if BEn condition false
-update Transactions-Dataverse table
- Terminate
CAtch
Set variable -Transaction status to Failed
Finally
Update Transactions-dataverse table with error message, status-Success/Failed
Could someone advise on this please?

Report
All responses (
Answers (