Edit image composite wont recognise the binary of the second file for some reason

Describe the problem/error/question

For some reason the second binary processed in my loop isn’t recognized by the edit image node. This happens the same with the other binary if I swap the order in which they are processed by the loop. Why is this happening?

What is the error message (if any)?

The item has no binary field ‘after’ [item 0]
Check that the parameter where you specified the input binary field name is correct, and that it matches a field in the binary input

Please share your workflow

Information on your n8n setup

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

You don’t need a loop in that workflow. Can you try without it and see what happens?

Just connect the code node directly to the HTTP request.