# Automation - delete failure is not explained well

**URL:** <https://forums.toadworld.com/t/automation-delete-failure-is-not-explained-well/29206>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [March 10, 2014, 10:20am UTC](https://forums.toadworld.com/t/automation-delete-failure-is-not-explained-well/29206 "2014-03-10T10:20:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![julian.chasin\_625](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@julian.chasin\_625](https://forums.toadworld.com/u/julian.chasin_625)\
**Post date:** [March 10, 2014, 10:20am UTC](https://forums.toadworld.com/t/automation-delete-failure-is-not-explained-well/29206/1 "2014-03-10T10:20:32Z")

</div>

**I use the ‘Delete File’ function in an automation step. The trouble is, if a file is not found, I get a logging stating:**

A failure in this .tas run!

Automation script “TestDelete\_Daily” had errors while executing. The exception messages are listed below and the log file is attached. Change to verbose logging and rerun script for more details.

Exception Messages:

Delete\_1 - Collection was modified; enumeration operation may not execute.

\*\*That is pretty mysterious lingo, and makes it hard to diagnose. The log file states the same message. \*\*

**Can this be improved?**

**I think a better message might be ‘File not found: examplefilenamexx.ext’.**

**Test .tas attached.**  
[TestDelete\_Daily.tas](https://global.discourse-cdn.com/quest/original/2X/5/56b36f3b58e47e0f14732f1d44d3d65d0d5cc9cd.tas) (7.91 KB)

---

<div class="post-metadata">

**Author:** ![IgorM](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/igorm/32/116_2.png) [@IgorM](https://forums.toadworld.com/u/IgorM)\
**Post date:** [March 10, 2014, 2:56pm UTC](https://forums.toadworld.com/t/automation-delete-failure-is-not-explained-well/29206/2 "2014-03-10T14:56:00Z")

</div>

I agree. I created QAT-2121 to track this issue.

Thanks for reporting,

Igor.

---

<div class="post-metadata">

**Author:** ![IgorM](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/igorm/32/116_2.png) [@IgorM](https://forums.toadworld.com/u/IgorM)\
**Post date:** [March 10, 2014, 4:27pm UTC](https://forums.toadworld.com/t/automation-delete-failure-is-not-explained-well/29206/3 "2014-03-10T16:27:13Z")

</div>

This is fixed. See the fix in the next beta.

Igor.

---

<div class="post-metadata">

**Author:** ![IgorM](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/igorm/32/116_2.png) [@IgorM](https://forums.toadworld.com/u/IgorM)\
**Post date:** [March 11, 2014, 12:35pm UTC](https://forums.toadworld.com/t/automation-delete-failure-is-not-explained-well/29206/4 "2014-03-11T12:35:43Z")

</div>

The problem was a bit more complicated than it might look at first. Actually, if you have several files to delete and there was only one file in the list that was missing, the whole delete operation failed. This is fixed now. I’ve just posted a new beta (2727). Try it.

Igor.

---

<div class="post-metadata">

**Author:** ![julian.chasin\_625](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@julian.chasin\_625](https://forums.toadworld.com/u/julian.chasin_625)\
**Post date:** [March 11, 2014, 12:39pm UTC](https://forums.toadworld.com/t/automation-delete-failure-is-not-explained-well/29206/5 "2014-03-11T12:39:01Z")

</div>

**I’m not in a position to beta test fixes. I’ll have to wait for the official release, 3.5 I suppose. I trust it’s improved.**

**Thanks,**

_ **Julian Chasin** _

---

<div class="post-metadata">

**Author:** ![IgorM](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/igorm/32/116_2.png) [@IgorM](https://forums.toadworld.com/u/IgorM)\
**Post date:** [March 11, 2014, 1:03pm UTC](https://forums.toadworld.com/t/automation-delete-failure-is-not-explained-well/29206/6 "2014-03-11T13:03:40Z")

</div>

Sure thing. Just wanted to mention that the problem was a bit bigger than just a misleading message.

Igor.
