Calling on some help with a script I am writing.
What I am trying to achieve is importing records into a table then comparing and adding non matching records in a related table
It is all working well until I get to the loop where I am requesting a new record be created in the target table and then setting the fields I want to populate with the imported data.
The new record is created but no fields are populated and it ends the script. I am pretty sure this is a context issue where I am probably not stating something simple but I can't see it.
I have attached a screen shot of the script, any help will be greatly appreciated.