This is normal. Getting the error code does not mean there is a problem with your script.
Think of "Exit after last" as actually more like "Exit on error 101"
when go to record / request / page next/exit after last throws 101 every time. That's just how the step behaves.
If you suppress the error with Set Error Capture on FM wont throw an error msg box.
do your find
capture found count in a variable
set an incrementer variable = 1
if none found dont do the loop
exit loop if incrementer variable = or > found count variable
incrementer variable + 1
go to next record
My problem isn't just the 101 error, if I have a found set of records (10) that I'm looping through, the Loop script steps will only be executed once instead of going the record in the found set.
For this particular error in this situation, you will never get an error message box regardless of whether error capture is on or off.
If the loop exiting after the first pass, maybe you are starting on the last record? In this case, put a "Go to record [first]" before the loop begins.
I found the problem.
At the end of my Loop I wasn't returning to the original layout that is related to the found set. I put in the "Go to Layout" script step and things seem to be working OK.
Thanks for the input.