I have a problem regarding error handling in my project (Re-Framework). I have inputed logic considering max consecutive system exception, but when the max number of exceptions (set in Config file) is reached, the process is stopped and message is thrown, but the orchestrator marks the test as ‘passed’ not ‘faulted’. Any ideas why this happens ? Any help will be much appreciated.
Make sure that within the “Set Transaction Status” workflow (usually in the “Process.xaml” file), there is logic to set the transaction status to “Failed” when an unhandled exception occurs.
If the exception thrown is inside try catch or is being handled then the process will be successful only but you would see exception in logs…thats the best practice as well…if you dont want that thwn when exception is there throw it from the main sequence and dont put a try catch around
In your case you can configure it according to your needs.
Best Practice in Re-Framework:
If an exception occurs within a try-catch block in initilization state or is being appropriately handled, the process will still execute successfully. However, the exception will be logged for reference. This approach ensures robustness and transparency in the workflow
@Anil_G@mkankatala@Nitish_Singh@19learningcurve
I think i found out what might be the issue. My process doesn’t use Queue and in ‘SetTransactionStatus’ framework (whether Success, Business Exception or System Exception), the try catch loop refers to ‘OrchestratorQueueFolder’. What kind of logic would you suggest to use to avoid refering to any part of queue and being able to set the transaction status properly ?
Ok, thank you, TranscationItem variable has been changed to ‘string’ and i reestablished my workflows .
However i still have the same problem - when the bot reaches max consecutive system exceptions it throws the new exception, but marks the process as Succesful. I still don’t know how to fix that