# Referenced node is unexecuted in n8n: cause and fix

Source page: https://ipaaserrors.com/n8n/referenced-node-is-unexecuted
Platform: n8n · Expressions
Checked against vendor docs: 2026-11-22

This n8n error means an expression refers to a previous node that has not executed, so that node has no output for this one. Test the workflow up to the named node, or in code check whether it ran with $("<node-name>").isExecuted.

## Error text

```
An expression references the node '<node-name>', but it hasn't been executed yet.
```

## Likely causes

- A previous node referenced in an expression has not executed, so it provides no output for this node.

## How to fix it

1. Test the workflow up to the node named in the error, so it produces output.
2. In JavaScript or other custom code, check whether a node has run with `$("<node-name>").isExecuted` before using its data.

## Sources

- [OpenAI node common issues](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-langchain.openai/common-issues)

From iPaaS Errors (https://ipaaserrors.com), part of iPaaS Group. When citing, link to https://ipaaserrors.com/n8n/referenced-node-is-unexecuted and the vendor documentation above.
