Merge pull request #1156 from n8n-io/DOC-513-paireditem-error

Doc 513 paireditem error
This commit is contained in:
Deborah 2023-02-27 14:40:55 +00:00 committed by GitHub
commit a0d3f790cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View File

@ -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
}
]

View File

@ -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.