N8N flow not working

Describe the problem/error/question

I have this problem relates to this workflow

What is the error message (if any)?

if I look at the output not read correctly the output prepare data

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

You need a Merge node before your first code node

and you must use $input.all()[0] to get first input item