n8n
n8n copied to clipboard
Unable to access content of a previous node from anything other than the immediate next node
Describe the bug When trying to access a previous node in an expression, only the node before it will return any data. Trying to access data from a node 2, 3 ,4 etc steps backward will not yeild any data.
To Reproduce Steps to reproduce the behavior:
- Create a node
A
that outputs data i.e: Set - Create some other node
B
that does literally anything else - Create 3rd node
C
that tries to access data from nodeA
- No data 🐛
- Connect node
A
to nodeC
directly - Data
Expected behavior Expect data to be accessible from following nodes.
Environment (please complete the following information):
- OS: Ubuntu 20
- n8n Version 1.14.1
- Node.js Version 18
- Database system SQLite
- Operation mode main?
Additional context Attached video demonstrating the issue.
https://github.com/n8n-io/n8n/assets/1182105/d9dc1ab1-8833-40cd-984c-e3789ad6e11b
Hey @neverether,
That is an interesting one, it looks like the data is available but not until the node has input data. I have created N8N-7035
as our internal ticket to have a look at this.
I have a similar issue where data from a previous node isn't accessible. In my case, I'm processing an array of records in a batch:
Issue present after updating from 1.10.1 to v1.11.2 / Also present on v1.15.2 DB System: Postgres on Heroku using queue mode
Hey @sagararyal,
Your issue is very different and is likely to be related to paired items or the way the workflow has been created. Could you create a post on our support forum and include your workflow so we investigate further.