mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
Merge pull request #1156 from n8n-io/DOC-513-paireditem-error
Doc 513 paireditem error
This commit is contained in:
commit
a0d3f790cb
@ -16,6 +16,7 @@ To control item linking, set `pairedItem` when returning data. For example, to l
|
||||
"json": {
|
||||
. . .
|
||||
},
|
||||
// The index of the input item that generated this output item
|
||||
"pairedItem": 0
|
||||
}
|
||||
]
|
||||
|
||||
@ -22,5 +22,24 @@ If you see this error message:
|
||||
|
||||
> ERROR: Can't get data for expression under '`<field-name>`' field
|
||||
|
||||
You need to supply item linking information yourself, because you have an item linking scenario that n8n can't automatically handle. Refer to [Item linking concepts](/data/data-mapping/data-item-linking/item-linking-concepts/) for a conceptual understanding of item linking, and [Manage item linking in the Code node](/data/data-mapping/data-item-linking/item-linking-code-node/) for detailed guidance on handling item linking.
|
||||
You need to supply item linking information yourself, because you have an item linking scenario that n8n can't automatically handle.
|
||||
|
||||
To control item linking, set `pairedItem` when returning data. For example, to link to the item at index 0:
|
||||
|
||||
```js
|
||||
[
|
||||
{
|
||||
"json": {
|
||||
. . .
|
||||
},
|
||||
// The index of the input item that generated this output item
|
||||
"pairedItem": 0
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
Refer to [Item linking concepts](/data/data-mapping/data-item-linking/item-linking-concepts/) for a conceptual understanding of item linking, and [Manage item linking in the Code node](/data/data-mapping/data-item-linking/item-linking-code-node/) for detailed guidance on handling item linking.
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user