Toad World® Forums

Rerun automation script after error...


How can I rerun automation script if it stop to some error? Reason for error can be for example opened excel file where script tries to write data. Is it possible to use error information to start script again for example after half an hour if error occurs?


Message was edited by: heikki.lampela_375


Currently there is no way to restart the script when there is a failure. There is an enhancement request in to supply a success or failure return code from running the script. With this you could do this but it’s not coded yet.

You can however, set a single activity to not stop on error. This is an attribute of every activity. The default is to halt the script if there is an error. But some activities might error and not be fatal.

In the example you gave, the file has to be closed in order for the process to succeed which usually would need a manual intervention.

Anyway, try the “continue on error” on activities where this is applicable.



Ok. I’ll try to live with this…