n8n · Expressions
Referenced node is unexecuted
Short answer
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.
VerifiedLast verified
01Error text
An expression references the node '<node-name>', but it hasn't been executed yet.02Likely causes
- A previous node referenced in an expression has not executed, so it provides no output for this node.
03How to fix it
- Test the workflow up to the node named in the error, so it produces output.
- In JavaScript or other custom code, check whether a node has run with
$("<node-name>").isExecutedbefore using its data.
04Fix it with AI
Copy this prompt into Claude Code, ChatGPT or any AI assistant. It already holds the error, the likely causes and the fix steps, so the assistant starts from what is known instead of guessing.
I'm getting this error in n8n (Expressions):
An expression references the node '<node-name>', but it hasn't been executed yet.
What it usually means: 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.
Likely causes:
- A previous node referenced in an expression has not executed, so it provides no output for this node.
Fix steps that usually work:
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.
Help me fix it. If you can read my project files, find where this error comes from. If not, ask me for what you need (the failing step, its input, the connection or config). Check the likely causes one by one, tell me which one it is and why, then give me the exact change to make. Do not change anything in production. Reference: https://ipaaserrors.com/n8n/referenced-node-is-unexecutedNothing is sent anywhere from this page. Read what the assistant suggests before you apply it.
05Official documentation
→Related errors
- A 'json' property isn't an objectThis n8n Code node error occurs when the node returns data where the json key does not point to an object. Make sure that the json key references an object in your return data.
- Code doesn't return items properlyThis n8n Code node error occurs when the code does not return data in the expected format. Return an array of objects in which each object wraps your data under the json key.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for n8n work:Open n8n jobsn8n pay estimates