# Rerun automation script after error...

**URL:** <https://forums.toadworld.com/t/rerun-automation-script-after-error/6107>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [December 30, 2009, 9:35am UTC](https://forums.toadworld.com/t/rerun-automation-script-after-error/6107 "2009-12-30T09:35:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![heikki.lampela\_375](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@heikki.lampela\_375](https://forums.toadworld.com/u/heikki.lampela_375)\
**Post date:** [December 30, 2009, 9:35am UTC](https://forums.toadworld.com/t/rerun-automation-script-after-error/6107/1 "2009-12-30T09:35:34Z")

</div>

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?

-Heikki

Message was edited by: heikki.lampela\_375

---

<div class="post-metadata">

**Author:** ![Debbie\_Peabody](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/debbie_peabody/32/18_2.png) [@Debbie\_Peabody](https://forums.toadworld.com/u/Debbie_Peabody)\
**Post date:** [December 30, 2009, 11:15am UTC](https://forums.toadworld.com/t/rerun-automation-script-after-error/6107/2 "2009-12-30T11:15:34Z")

</div>

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.

Debbie

---

<div class="post-metadata">

**Author:** ![heikki.lampela\_375](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@heikki.lampela\_375](https://forums.toadworld.com/u/heikki.lampela_375)\
**Post date:** [December 31, 2009, 6:18am UTC](https://forums.toadworld.com/t/rerun-automation-script-after-error/6107/3 "2009-12-31T06:18:37Z")

</div>

Ok. I’ll try to live with this…

-Heikki
