Loop aborts with no message why
Posted: Mon Nov 17, 2008 3:03 pm
Below is a simplified model of the job I began with (wish we could upload a DSX). I removed everything except the loop itself so that it could be demonstrated. Maybe someone is willing to try this and see if they can duplicate the behavior I am seeing -- or explain to me what I am missing as to why it is doing this.
It is probably something obvious...
What happens when I run this, is that it aborts at iteration #257 with nothing more than the abort message. No indication of the stage that failed or anything else. When it does abort, it doesn't go through either of the nested conditions. I've tried various changes in the conditions and such but nothing seems to make a difference.
StartLoop (Start Loop, numeric): From = 1, Step = 1, To = 500
SetVar (User Variables): Value = @NULL
ChkNull (Nested Condition): Trigger null - IsNull(SetVar.Value), Trigger not_null - Otherwise
ChkZero (Nested Condition): Trigger GT_zero - SetVar.Value > 0, Trigger zero - Otherwise
Next (End Loop)
Continue (Sequence, Any)
Done (Sequence, All)
Vars
![Confused :?](./images/smilies/icon_confused.gif)
What happens when I run this, is that it aborts at iteration #257 with nothing more than the abort message. No indication of the stage that failed or anything else. When it does abort, it doesn't go through either of the nested conditions. I've tried various changes in the conditions and such but nothing seems to make a difference.
StartLoop (Start Loop, numeric): From = 1, Step = 1, To = 500
SetVar (User Variables): Value = @NULL
ChkNull (Nested Condition): Trigger null - IsNull(SetVar.Value), Trigger not_null - Otherwise
ChkZero (Nested Condition): Trigger GT_zero - SetVar.Value > 0, Trigger zero - Otherwise
Next (End Loop)
Continue (Sequence, Any)
Done (Sequence, All)
Vars
Code: Select all
StartLoop @---- Next @-- Continue
| @ @
| | \
| | zero
| | \
| null ChkZero -- GT_zero -------@ Done
| | @
| | /
| | not_null
@ | /
SetVar ----------------@ ChkNull