You don't have enough proxies in the file most likely.
Maybe the Run number is set to more than one when there is only 10 proxies.
It is hard to say without seeing the script
Hope that really answered your problem. Can also use the "Select Records" command, change the Table to the second one and add any filters you need. This will return all records in a list and using the Foreach will get the job done.