Error Handling not Stopping Task
I've attached a task that shows this issue.
In my task I have a loop and in that loop there is something that causes an error (in this case I'm using a bad DB connection string cause an error). Around the loop I am using error handling that is set to stop the task when an error is encountered.
If the db connection is the only thing inside the loop then the error handling stops the task the first time it goes through the loop... as expected. The task is then done.
But if I put anything else inside the loop, even a comment, it will cause the error handling to not stop the task when the error is encountered... it will keep looping through until the loop condition is satisfied (in my case I set it to loop 10,000 times).
Why doesn't it stop the task as it is supposed to?
I want to put error handling around my entire task but this behavior means that it doesn't work as it should...
|