You can try with a script step
Commit Records/Requests [ With Dialog: Off]
At the beginning of the loop sequence.
Still same result?
I just mention this since some rendering orders and processes changed with FM15.
FileMaker is aware of this. Please see
On Aug 3, 2016, at 15:46, agisllc <email@example.com> wrote
As of FM15 - Get(ActivePortalRowNumber) yields WRONG number!
created by agisllc in Report a Product Issue - View the full discussion
Thank you for your post.
The information from BeatriceBeaubien is correct (Thank you!). Our Development and Testing departments are aware of this issue. I have attached your post to the original report. When more information becomes available, I will post again.
The issue with Get(ActivePortalowNumber) returning a value one greater when used as auto-enter or stored calculations has been addressed in FileMaker Pro 15.0.2.