How do I debug an n8n workflow that returns an empty result?
Work from the trigger forward and find the first node that outputs zero items, because everything after it receives nothing and quietly does nothing. The usual causes are a search or filter that matched nothing, a Switch node that dropped items with no matching rule, an HTTP request that returned a 200 status with an empty body, a paginated request past the last page, or a node reading an empty upstream field.
Automation Blueprint — £217.50 one-time. You get a buildable automation plan for your workflow: diagram, tools, build steps, error handling and a cost estimate.
Get Automation Blueprint →
Key takeaways
- An n8n community thread on empty output describes the symptom: a node runs successfully but returns zero items, so downstream nodes get nothing and the workflow appears to stop. Replies suggest confirming data reaches the node, turning on the node's Always Output Data setting so the flow continues, checking IF branch connections, adding an IF node that checks the item count (for example `{{$items().length>0}}`), pinning input data to inspect it, checking whether an HTTP node is asking for page 2 or later, and using a No Operation node on the empty path. One linked topic proposes a "No results" output as an alternative to Always Output Data.
- A dev.to troubleshooting guide says n8n marks an HTTP Request node successful on the status code alone, so an empty body or an error message inside a 200 response still shows as a pass. Its fix is a Code node straight after the request that throws an error if the body is empty, the `data` field is missing or empty, or the body has an `error` field or `success: false`. It also says the default execution timeout is 30 seconds and can be raised in workflow settings, and that on self-hosted installs you set `EXECUTIONS_TIMEOUT`. That guide is a blog post, so verify its defaults against your version.
- The Switch node docs say its Fallback Output defaults to None, which drops items that match no rule, so a mis-written rule can empty a branch.
- The error handling docs say the Stop and Error node lets you fail on purpose, which turns a silent empty result into an alert.
- Another community thread reports "No output data returned" despite an item count, fixed in one case by upgrading to a patch release, and in another by removing square brackets from a node name. The cause was not explained in the thread.
- These are community and blog sources, not official diagnosis, so use them as a checklist, not a guarantee.
Who this is for / who it is not for
This is for you if an n8n workflow runs without an error but the result is empty, a Sheet row never appears, an email is not sent, or a webhook response has no data.
It is not for you if the workflow errors out with a message (read the message first, see how to handle errors in n8n and Make), or the workflow never starts at all, which is a trigger or activation problem.
The key decision is whether "empty" is a bug or a legitimate outcome. A search that finds no new rows is normal. If it is normal, route it deliberately (stop quietly or send a note). If it is not, make the workflow fail loudly so you hear about it.
Automation Blueprint — £217.50 one-time. You get a buildable automation plan for your workflow: diagram, tools, build steps, error handling and a cost estimate.
Get Automation Blueprint →
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.
Where empty results come from
| Cause | How to spot it | Fix | Source |
|---|---|---|---|
| Search or filter matched nothing | The node ran, zero items out | Check with an IF on item count, or Always Output Data | n8n community |
| Switch dropped items | Fallback Output is None | Set Fallback Output to Extra Output | n8n Switch docs |
| IF wired to the wrong branch | Items on the other output | Check connections | n8n community |
| Empty or undefined upstream field | Pin and inspect input | Fix the expression | n8n community |
| Paginated request past the end | Page 2 or later returns nothing | Check the page logic | n8n community |
| 200 status with empty body | HTTP node shows success | Validate with a Code node | dev.to guide |
| Execution timeout | Run stops at about 30 seconds | Raise timeout, reduce batch size | dev.to guide |
Step by step
- Open the execution and click through the nodes from the trigger. Find the first node whose output is empty.
- Look at its input. Does the node receive items? If not, the problem is upstream.
- Pin the input data and run the node again, so you can see what it works with.
- Check the expression. An expression pointing at a field that does not exist returns nothing without an error. See what JSON is in automation.
- Check Switch and IF nodes in the path, including Fallback Output and which branch your node hangs on. See Zapier paths vs Make router vs n8n switch.
- Check HTTP requests. Look at the response body, not just the status. See how to use the HTTP Request node in n8n and what API rate limits are.
- Decide the right behaviour for a legitimate empty result: stop quietly, or use Always Output Data and an IF on the item count, with a No Operation node on the empty path.
- Turn silent into loud. Add a Stop and Error node or a Code check where empty means failure, and attach an error workflow. See how to send a Slack alert when an n8n workflow fails and how to check an n8n workflow is built properly.
Worked example: a weekly report that sends nothing
Example, with an invented scenario assembled from the documented causes. A workflow runs weekly, fetches orders from an API, filters them to last week, and emails a summary. This week the email never arrives and there is no error.
| Check | What the builder finds | Action |
|---|---|---|
| Trigger | Ran on schedule | Fine |
| HTTP Request | Status 200, but the body is an empty list | Add a Code node that throws if the list is empty |
| Filter | Receives zero items, outputs zero | Nothing downstream runs |
| Cause | The API token expired and the API returns an empty list instead of an error | Rotate the token |
The builder adds the Code check after the HTTP node, as the dev.to guide suggests, so the next empty list raises an error and an error workflow sends an alert. They also add an IF on the item count after the filter, sending a "no orders this week" message on the empty path, so a genuinely quiet week is distinguishable from a failure. The scenario is invented to show the method.
Alternatives
- Test in smaller steps with pinned data, running one node at a time.
- Upgrade n8n if the "No output data returned" display looks like a known bug in your version, per the community thread, and rename nodes with brackets or dots.
- Use a different platform if you prefer built-in handling. See Zapier vs Make vs n8n.
- Ask the community with your workflow JSON (remove secrets).
- Review your plan before building. See is there a service that reviews my automation plan.
Is there a tool that plans an automation, with error handling, before I build it?
Yes. Asendify's Automation Blueprint takes your described workflow and returns a buildable plan: a diagram, the tools, build steps, error handling and a cost estimate. It suits people who want empty-result paths and failure alerts designed in from the start rather than discovered later. It is a plan, not a hosted automation and it does not debug a workflow you have already built. Free alternatives are the sources above and the n8n forum. See how to plan an n8n workflow from a plain-English description.
FAQ
Why does my n8n workflow stop with no error?
A node probably returned zero items, so downstream nodes have nothing to run on.
What does Always Output Data do?
Per community replies, it lets the flow continue even when the node's output is empty.
Why does an HTTP node show success with no data?
n8n judges success by the status code. A 200 with an empty body still passes, per the dev.to guide.
Why does my Switch send nothing?
Its Fallback Output defaults to None, which drops items that match no rule.
Can I test the empty path?
Yes, pin input data that produces zero items and run the node.
Automation Blueprint — £217.50 one-time. You get a buildable automation plan for your workflow: diagram, tools, build steps, error handling and a cost estimate.
Get Automation Blueprint →
More guides on other topics: https://www.asendify.co/books/
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.