Hi TONY HERMESOM TAVARES GOMES,
Thank you for posting query in Microsoft Q&A Platform.
It seems you might not configured your lookup activity properly, hence ending up with this error.
Kindly make sure not to declare your parameters in the script. Directly use those parameters in the script. And under script parameters field declare your parameters and pass values into them.
If above not helps. Kindly share your lookup activity
screenshots to understand better and try to repro at my end to help better.
Please let me know how it goes.