How to end Automation if SAP login fails

I have built a SAP automation and I want to know that what should I do if the process fails at the first step that is “Logon/Login SAP”. How to end the workflow gracefully.

put all your BOT code inside a try catch block. It will stop the BOT.

1 Like

use state machine e.g. REFramework. try to login at the initial state, if its successful, you can move to the next state, if it fails, move to the End state

image

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.