I have a simple workflow that is designed to look for missing cheque numbers. It runs through a repeat activity with a Modify Token at the bottom that changes the "Next Number to Look For" token by adding +1 each time it repeats, using this calculation which works when tested: SUM(%(Cheque Number)+1)
I can't seem to get it to repeat. The first run through works perfectly, but it seems like the number doesn't get changed... or, rather, it gets changed to something the WF can't recognize. The repeat ends up with a message "The selected entry could not be found". It is not modifying the Cheque Number token properly.
What might I be doing wrong?