n8n icon indicating copy to clipboard operation
n8n copied to clipboard

Unable to access content of a previous node from anything other than the immediate next node

Open neverether opened this issue 1 year ago • 3 comments

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:

  1. Create a node A that outputs data i.e: Set
  2. Create some other node B that does literally anything else
  3. Create 3rd node C that tries to access data from node A
  4. No data 🐛
  5. Connect node A to node C directly
  6. 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

neverether avatar Nov 06 '23 12:11 neverether

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.

Joffcom avatar Nov 06 '23 14:11 Joffcom

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: Screenshot 2023-11-09 at 12 31 37 AM

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

sagararyal avatar Nov 08 '23 23:11 sagararyal

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.

Joffcom avatar Nov 09 '23 10:11 Joffcom