Why an n8n customer lookup can shift after a filter
In a worked Item Linking Lab example, filtering one fictional customer makes two position-based lookups return the wrong identities. Comparing the results by customer ID makes the failure visible.
In this article
Quick answers
What changes after removing the first customer?
Ben and Cam become outputs 0 and 1. Using those positions to look up the original list selects Ada and Ben. Following the displayed source indexes 1 and 2 selects Ben and Cam.
The practical takeaway
After filtering, compare a stable customer ID with the intended source record before using its email. A successful lookup only proves that a value was found.
One removal shifts both lookups
We ran a new comparison in Item Linking Lab on November 18 to see what happens when one customer is removed but a downstream step still uses position to pick an email. The original input contains Ada, Ben and Cam at indexes 0, 1 and 2. The filter removes Ada and keeps the other two in their existing order. Ben moves into output position 0 and Cam into position 1.
In the positional run, the lab uses each output position to index the original input. That gives Ada's synthetic email to Ben's output and Ben's email to Cam's. Both rows return an email, but neither matches the intended customer ID. In the second run, Ben's output follows its recorded source index 1 and Cam's follows index 2. Both IDs match. Those counts describe these two fictional rows in the teaching model.

Where to check a real workflow
The problem starts when the downstream expression assumes two lists still share positions. A check that only looks for an email can miss it. In a test run, compare the output's intended customer ID with the ID belonging to the chosen address. Include a removal near the top of the input so a position mix-up becomes easy to see. Inspect the node that changes the list and the lookup that reads against the earlier list.
n8n can keep item relationships for items that survive filtering or reordering. A lookup through the linked item follows that relationship to an earlier node. A lookup that indexes the earlier node's array by the current output position makes a separate assumption. In Code node cases that create new items, n8n documents how to supply explicit pairing back to the input that generated each output. If the chain is missing or has multiple possible sources, inspect the mapping before choosing an address.
Reproduce both results
Open the free lab, choose Filtered items, and select Use the output position. Read the intended customer and selected email for each row. Switch to Follow the recorded link and compare the same rows. The GitHub example saves both results together and gives the command for generating them from the model. The browser exercise uses fixed fictional inputs and requires no account or workflow upload.
This example holds output order fixed and changes which rows survive, which isolates a different problem from the reordered example in our November 16 release. The mapping is deliberately small and starts with correct recorded links. It does not predict what a particular n8n node will infer, verify tenant boundaries, or cover branches and multiple inputs. Use the comparison to decide what to inspect in an actual workflow run.
Sources & method
AI-assisted reporting with a recorded November 18 run of the Item Linking Lab 0.1.0 teaching model on Node.js v22.15.0. We compared the filtered scenario by output position and by recorded source. The cited GitHub files contain both generated reports and the reproduction steps. We checked n8n's documentation separately from our model run.
- Item Linking Lab browser exerciseAccessed November 18, 2026
- Filtered customers, reproduction steps and comparison JSONAccessed November 18, 2026
- n8n documentation on how items link through workflowsAccessed November 18, 2026
- n8n documentation on preserving linking in the Code nodeAccessed November 18, 2026
- n8n documentation on item linking errorsAccessed November 18, 2026
- AI Toolcast's original Item Linking Lab releaseAccessed November 18, 2026
Source pages reviewed November 18, 2026. Analysis and suggested evaluation methods are AI Toolcast’s own.
AI Toolcast owns and developed Item Linking Lab with AI assistance. The example uses fictional records and the lab's teaching model. We did not run n8n or test a production workflow. AI Toolcast is not affiliated with n8n.
Found a possible error? How to report a correction.


