AnsweredAssumed Answered

Script Problem: Works Fine on Single Record but Not When Looping on Multiple Records

Question asked by osninc on Nov 27, 2017
Latest reply on Nov 28, 2017 by philmodjunk

I have a complicated set of 11 individual scripts (a-g and 1-4) that I can successfully call from another script (SCRIPT 1) and everything works fine when there is a single record.  There are 4 related tables that I am able to successfully create multiple related records in each portal using individual steps 1-4 inside of SCRIPT 1.

 

SCRIPT 2 is just a duplicated version of SCRIPT 1 but it has a GoTo Next Record loop to through a found set of records.  It works fine if there is just one record in the found set.  However, if I have anything more than 1 record in the found set it will only write the last related record in steps 1-4. 

 

Here are two screenshots of Script 1 and Script 2. 

 

Script1.png

Here is Script 2:

Script2.png

Any idea of what I am doing wrong? 

Outcomes