Set Job State failed explicitly based on logging levels

Hi All,

I know it sounds silly, but it is requirement by client support team.

We had designed our code using Best practices hence all activities are handles in Try Catch block, and that’s why even if automation job log error/warn, the job suceeds.

But Client support team are asking if job has error then it should show in Orchestartor Job states as Failed or whatever.

Please suggest if this is possible apart from obvious not handling error in Catch block and let job terminate stating error.

Vinod Swain


if you are rethrowing the error again from the main catch block it will reflect in the orchestrator as failed.

1 Like

Thanks @Sreelatha278, seems like great solution, will definitely give a shot and update.

Vinod Swain