Hi @Louis_kwok, the items object doesn’t exist on the Code node. Is there a chance you were using the older Function node on your self-hosted instance of n8n?
The items equivalent (referencing all incoming items) in the Code node would be $input.all(). This expression is part of the example snippet in the Code node and also documented here.
So, in your Code node you might want to use a snippet like this, where items has been replaced with $input.all():