Error reading info from other nodes

Describe the issue/error/question

I want to read one or several output data from one previous node not connected directly with my current node.

What is the error message (if any)?

ERROR: The node “Function2” is not connected with node “Recover Last Modification” so no data can get returned from it. [Line 1]

ExpressionError: The node "Function2" is not connected with node "Recover Last Modification" so no data can get returned from it.
    at WorkflowDataProxy.getNodeExecutionData (/private/var/folders/5b/0z88mwfd2339srrjkk1j8p7r0000gn/T/AppTranslocation/B9B6E4BE-05C0-496E-83B6-460E27BD873E/d/n8n.app/Contents/Resources/app/node_modules/n8n-workflow/dist/src/WorkflowDataProxy.js:163:27)
    at Object.get (/private/var/folders/5b/0z88mwfd2339srrjkk1j8p7r0000gn/T/AppTranslocation/B9B6E4BE-05C0-496E-83B6-460E27BD873E/d/n8n.app/Contents/Resources/app/node_modules/n8n-workflow/dist/src/WorkflowDataProxy.js:196:48)
    at get (<anonymous>)
    at BaseHandler.get (/private/var/folders/5b/0z88mwfd2339srrjkk1j8p7r0000gn/T/AppTranslocation/B9B6E4BE-05C0-496E-83B6-460E27BD873E/d/n8n.app/Contents/Resources/app/node_modules/vm2/lib/bridge.js:441:11)
    at /private/var/folders/5b/0z88mwfd2339srrjkk1j8p7r0000gn/T/AppTranslocation/B9B6E4BE-05C0-496E-83B6-460E27BD873E/d/n8n.app/Contents/Resources/app/node_modules/n8n-nodes-base/dist/nodes/Function:1:149
    at /private/var/folders/5b/0z88mwfd2339srrjkk1j8p7r0000gn/T/AppTranslocation/B9B6E4BE-05C0-496E-83B6-460E27BD873E/d/n8n.app/Contents/Resources/app/node_modules/n8n-nodes-base/dist/nodes/Function:8:2
    at BaseHandler.apply (/private/var/folders/5b/0z88mwfd2339srrjkk1j8p7r0000gn/T/AppTranslocation/B9B6E4BE-05C0-496E-83B6-460E27BD873E/d/n8n.app/Contents/Resources/app/node_modules/vm2/lib/bridge.js:479:11)
    at NodeVM.run (/private/var/folders/5b/0z88mwfd2339srrjkk1j8p7r0000gn/T/AppTranslocation/B9B6E4BE-05C0-496E-83B6-460E27BD873E/d/n8n.app/Contents/Resources/app/node_modules/vm2/lib/nodevm.js:425:23)
    at Object.execute (/private/var/folders/5b/0z88mwfd2339srrjkk1j8p7r0000gn/T/AppTranslocation/B9B6E4BE-05C0-496E-83B6-460E27BD873E/d/n8n.app/Contents/Resources/app/node_modules/n8n-nodes-base/dist/nodes/Function/Function.node.js:96:31)
    at Workflow.runNode (/private/var/folders/5b/0z88mwfd2339srrjkk1j8p7r0000gn/T/AppTranslocation/B9B6E4BE-05C0-496E-83B6-460E27BD873E/d/n8n.app/Contents/Resources/app/node_modules/n8n-workflow/dist/src/Workflow.js:594:51)
    at /private/var/folders/5b/0z88mwfd2339srrjkk1j8p7r0000gn/T/AppTranslocation/B9B6E4BE-05C0-496E-83B6-460E27BD873E/d/n8n.app/Contents/Resources/app/node_modules/n8n-core/dist/src/WorkflowExecute.js:537:64

Please share the workflow

Share the output returned by the last node

I want that the output info from the last node will be the same as “Recover Last Modification” node

Information on your n8n setup

  • n8n version: 0.182.0
  • Database you’re using (default: SQLite): N/A
  • Running n8n with the execution process [own(default), main]: own
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: desktop app

Hi @franchogarcia, I am afraid this is the expected behaviour and not limited to the Function node.

Could you perhaps add a Merge node in either Wait or Pass-through mode to merge the orphaned branch back into your main branch? This would solve the problem of your node not being connected.

Thank you a lot @MutedJam!!! As always you are my salvation :slight_smile:
“Wait merge” hasn’t usefull for me because not returns nothing.
But “Pass-through merge” has run properly.

Thank you very much for your time, patient and help
BR!

1 Like