I am getting an error that says "This operation could not be completed because the target is not part of a related table." I cannot figure out why. It happens after a Replace All script step after clicking on a name. What is strange is if I click OK on the error and click the same name again, the script runs just fine without an error. The layout is based on the Person table and the Replace All only references a field from Person. Script Debugger lists an error of 103 "Relationship is missing". Here is a screenshot of the code. Obviously, the error occurs on line 2, not 3.
Any ideas where I could look for the problem?