I recognize the script above from another thread and I recall that I didn't recommend using perform find/replace but rather replace field contents which is a different tool.
Frankly, I assumed a one for one relationship as the script example you've posted will only update the first related record in table1 and in table2.
If you can't get records to appear in the portal for a given record, either that record and/or the set of related records have had the value in their match field(s) modified so that the parent record no longer matches those of the records in the portal's table. You'll need to search them out via some finds and check the values in these fields to see what happened.
You may also recall that I suggested making a back up copy before trying this so that you can toss the file and try again if things didn't work as expected...
The safest way to update groups of related records is to use a find or Go To Related Records to pull up those records on a layout based on the related table (table1, from your example), use Replace Field Contents or a loop to update them and then switch back to the original layout to repeat the process with the next record in the RFQ table. Since I see two related tables, table1 and table2, you'd need to do this for both related tables.