why I have this error?
You are getting this because you, or a script step, are trying to do something to an object that is not in scope at the time of execution.
You do understand context/scope right?
FileMaker Context, Relational Design, and Focus - FileMakerProGurus
context and perspective
You're trying to write into a field, using a field reference from a table occurrence that is not related to the table occurrence that the layout is based on where your script is that moment.
Thanks, I fix this but my previous problem is not solved
Show us your script; otherwise it's hard to provide more than a generic explanation.
What erolst said.. if we don't know what action threw the error how cam we recommend a fix?
Its like you said "its broken" and expect us to fix it without knowing what "it" is.
Precise questions get accurate answers.
Retrieving data ...