n8n Data Mapping Problems: Why the Next Node Receives the Wrong Values
When n8n has data mapping problems, the source data is correct but the next node receives the wrong values. The mapping between the output of one node and the input of the next is incorrect. Find where a correct source value becomes an incorrect value passed to the next node, because the issue is in the expression or the field reference, not the source data.
Table of Contents
- 01.The data mapping flow you are debugging
- 02.What to check first
- 03.Correct source but wrong passed value
- 04.Expressions and field references
- 05.Nested objects and arrays
- 06.Field names that changed
- 07.Null values and empty fields
- 08.How to test it
The data mapping flow you are debugging
Data flows from one node to the next through input and output items. Wrong mapping happens when an expression references the wrong field, a nested object is accessed incorrectly or a field name changed. The source value is correct but the next node receives the wrong value. Find where the correct source value becomes an incorrect value passed to the next node.
| Stage | What happens | How to check |
|---|---|---|
| Source value | Value is correct in the output | Check the output items |
| Expression | Expression references wrong field | Check the expression |
| Nested object | Wrong path to the value | Check the JSON path |
| Field name | Field was renamed or removed | Check the field exists |
| Null values | Field is empty | Check for null handling |
What to check first
- Check the output items of the previous node to confirm the value is correct.
- Check the expression on the next node that references the value.
- Confirm the field name in the expression matches the actual field.
- Check nested object paths if the value is inside an object.
- Check for null values that the expression does not handle.
Correct source but wrong passed value
First confirm the source value is correct in the output of the previous node. Then check the expression on the next node that references it. If the value is correct in the output but wrong in the next node, the expression is the problem. The expression references a field incorrectly, accesses a nested object at the wrong path or uses a field name that changed.
Expressions and field references
n8n uses expressions to pass values between nodes. An expression references a field from the input items. If the field name in the expression does not match the actual field, the value is wrong or empty. Check the expression against the actual field names in the input items. Field names are case sensitive and must match exactly.
Nested objects and arrays
Values inside nested objects or arrays need the correct path in the expression. If the expression points to the wrong level of the structure, the value is wrong even though it exists in the data. Inspect the JSON structure of the input items and confirm the expression accesses the correct path. Nested data and arrays are a common source of mapping errors.
Field names that changed
If a field was renamed or removed in the source, the expression that references the old name returns nothing or an error. Check whether the field still exists in the input items under the name the expression uses. A field rename in an upstream node or the source application breaks every expression that references the old name.
Null values and empty fields
An expression that references an empty field returns null or an empty value. If the next node expects a value and receives null, it can fail or produce wrong output. Check whether the source field is genuinely empty before treating it as a mapping problem. Add null handling in the expression if the field can be empty.
How to test it
- 1.Check the output items of the previous node for the correct value.
- 2.Check the expression on the next node that references the value.
- 3.Confirm the field name in the expression matches the actual field.
- 4.Check nested object paths if the value is inside an object.
- 5.Check for null values and add handling if needed.
- 6.Run the workflow and check the input items of the next node.
Frequently Asked Questions
Why does my n8n node receive the wrong value from the previous node?
The expression that passes the value references the wrong field, accesses a nested object at the wrong path or uses a field name that changed. Check the output of the previous node, then check the expression on the next node.
How do I fix n8n data mapping problems?
Confirm the source value is correct in the output items, check the expression references the correct field name and path, handle null values and confirm field names have not changed upstream. The fix is in the expression.
Need help applying this to your business?

PPC, Conversion Tracking, CRM and Automation Specialist. Helping businesses generate qualified leads with Google Ads, accurate tracking and automated follow-up.
Related Guides
n8n API Request Failing: How to Troubleshoot Authentication, Headers and Request Data
An API request fails when the endpoint, method, auth, headers or body does not match what the API expects. Read the status code and compare with the current documentation.
Webhook Data Goes Into the Wrong Field: How to Fix Mapping Problems
Wrong field mapping happens when the key does not match the payload or the data type does not match the destination. Capture the actual payload before changing the mapping.
n8n Workflow Stops at a Node: How to Find and Fix the Failed Step
A node that stops tells you what it needed and did not get. Read the error message, check the input items and confirm required fields are present.