Switch node only processes first result from If node inside Loop

The Switch block should process all results from the loop, but it’s giving an error because the result passed to it doesn’t exist.

*Hosting:* self hosted

*n8nVersion:* 1.119.1

*platform:* docker (self-hosted)

Following.. I too am experiencing a similar condition.

I don t see any loop node there… just an If and Switch node.


It’s here

You are trying to compare a number with a string .

Enable “Always Output Data” on nodes that might have empty results.

The Switch node has a setting that controls whether it processes only the first match or all matches.

Send data to all matching outputs: Set this to on if you want the Switch to send data to all outputs meeting conditions, rather than just the first matching output (which is the default behavior when turned off).