I am trying to get a script to create new records through a portal.
I have several records in a found set for which I need the script to go to each portal and create a new record.
I have set a loop which is set to exit when the number of found records matches the record number, i.e. (I hope) the loop stops when it reaches the last record. This is via two unstored Get calculation fields (RecordNumber and FoundCount)
All seems to work fine but I am getting a 101 error (missing record) when it comes to moving from the penultimate record to the last record and the script does not update the last record.
Can anyone see what I have done wrong?