n8n Missing Records? Compare Requests In vs Actions Done Every Day
23 Nov 2026
Suppose a form took 40 submissions yesterday and the CRM shows 34 new contacts. Every n8n execution for the intake workflow is green. The error workflow never fired, because nothing failed. The six missing records are the client's problem, and they find them first.
This is a different failure from a single run that succeeds while writing nothing. A gap can build across many green runs, across runs that stop halfway, and on days when the workflow never ran. The n8n community discusses a version of this check for failures that never show as an error (community.n8n.io).
Why the executions list won't show this
The executions list tells you whether a run finished and whether it errored. It does not tell you whether every source record arrived at the destination. A workflow can still look healthy when:
- Items were dropped on a green path. A Filter or IF condition stops matching after a field is renamed, and those items never reach the CRM node. If an item does not meet the condition, the Filter node "omits the item from its output" (Filter), so the execution stays a success.
- An error was handled away. A node set to On Error → Continue proceeds "using the last valid data" (Work with nodes). Some items may already have been written; later ones are skipped; the run still ends green.
- The write went to the wrong place. Someone duplicates a sheet "to tidy it," the team uses the copy, and the Sheets node keeps writing to the original. Executions succeed; the destination the client opens does not grow.
- The workflow never ran. A form provider stopped calling your webhook, or the workflow was unpublished for a quick fix. There is no execution to inspect, so nothing can fail. Webhook and form triggers use their production URLs, and schedules run, only after you publish (Save and publish workflows).
- The other direction: extras, not gaps. Retries can turn one request into two records. The destination is then ahead of the source, and nothing errors.
A raw execution count is not a record count. Ten successful runs can mean ten records, or four, or twelve. The n8n Executions API has the same limit: it lists runs, not outcomes.
Why a raw count is not enough
Comparing "40 in" with "34 out" is a useful first alarm, but matching totals can still be wrong. One record can be missing and another can be a duplicate, and the numbers still agree. Match rows on a stable ID (an order number, a form response ID, a call ID), not on names or row position, and look at three kinds of mismatch:
- In the source only: the destination never got the record (dropped branch, failed write, or no run for that event).
- In the destination only: an extra record (a retry that created twice, a late write from the previous window, or a manual row).
- Same ID, different fields: the record arrived incomplete or changed (a required field was blank, an amount drifted, or a later event never arrived).
The third case matters when data arrives in pieces. A call or a lead can come in as several webhook payloads. If you write a stub on the first event and never get the last one, the counts can still match while the record the client cares about is empty. Matching the ID and checking the fields that must be present catches that. Counting rows alone does not.
How to catch it by hand
You do not need a workflow to prove the gap exists. For one client-facing flow, pick yesterday:
- Export the source for that window: form responses, orders, or labelled emails.
- Export the destination for the same window: CRM records, sheet rows, or sent-email logs.
- Give the destination a margin. A record created at 23:59 and written at 00:01 looks missing if both sides are cut at midnight. Extend the destination window a little past the end of the source window.
- Match on the stable ID. In a spreadsheet, a lookup on the ID column is enough. Do not match on the person's name or on row order.
- List the missing IDs, and where they are missing, before you change anything.
If the source has records and the destination does not, open the n8n executions for that window. No executions means silence, not a bad mapping. If executions exist and are green, look at where the item count dropped.
Build a daily count check in n8n
Do this in its own workflow, not at the end of the intake workflow. If intake is broken or unpublished, the check should still run. Keep it stateless: read both sides on every run, so there is nothing to drift.
1. Schedule it, and publish it
Start with a Schedule Trigger, once a day, after the previous day's late writes should have landed. Interval changes only take effect after you publish a new version, and the new schedule counts from the moment of publishing. Set the workflow timezone on purpose; a mismatch will shift the run time (Schedule Trigger common issues).
2. Read both sides for the same window
Add one read node for the source and one for the destination. Filter each to the window you chose, with the destination margin above. Both sides need the stable ID. If a source item has no ID, fix that upstream: you cannot reconcile what you cannot key.
3. Compare the two sides on that ID
Add a Compare Datasets node. Put the source on Input A and the destination on Input B, and enter the ID field from each side in Input A Field and Input B Field (Compare Datasets). The node has four outputs, in this order:
- In A only Branch: IDs that exist only at the source (missing at the destination).
- Same Branch: IDs whose other fields also match.
- Different Branch: IDs that exist on both sides, but other fields differ.
- In B only Branch: IDs that exist only at the destination (extras).
To catch incomplete records, leave the important business fields in the comparison (status, owner, amount, email). Put timestamps and other fields that change on every write into Fields to Skip Comparing, or a changing updated_at will send every row to Different. Set When There Are Differences to Include Both Versions so each item can list both values. If an ID is a number on one side and a string on the other, turn on Fuzzy Compare; with it off, 3 and "3" are different.
4. Summarise the four outputs, every day
On a clean day the In A only output is empty, and nodes after an empty output do not run. If your "all matched" message hangs off that branch, a good day is silent, and silence looks like success.
Two details keep the alert trustworthy:
- Send a message on every run, including "all matched, 0 missing." A missing message then becomes the alert.
- Count items that have the ID, not the raw item count. If you attach a follow-up node to In A only, turn on Always Output Data on Compare Datasets so that node still receives an item on a clean day. The setting makes a node "return an empty item even if the node returns no data during execution" (Work with nodes). That placeholder has no ID; do not count it as a missing record.
A Code node set to Run Once for All Items, attached so it always runs after Compare Datasets (for example on In A only, with Always Output Data on), can build one summary from all four outputs. $("NodeName").all(branchIndex) returns that node's output items for a given branch (Expression reference). The four outputs above are index 0 through 3:
// Run Once for All Items. Runs after Compare Datasets.// Output order: In A only (0), Same (1), Different (2), In B only (3).const ID = "order_id"; // change to your stable ID fieldconst nodeName = "Compare Datasets";function withId(items) {return items.filter((item) => {const value = item.json ? item.json[ID] : null;return value !== undefined && value !== null && value !== "";});}const missing = withId($(nodeName).all(0));const same = withId($(nodeName).all(1));const different = withId($(nodeName).all(2));const extra = withId($(nodeName).all(3));return [{json: {source_count: missing.length + same.length + different.length,destination_count: extra.length + same.length + different.length,missing_count: missing.length,extra_count: extra.length,different_count: different.length,missing_ids: missing.map((item) => item.json[ID]),extra_ids: extra.map((item) => item.json[ID]),}}];
Send that object to Slack or email, and include the missing IDs. "Count check failed" without the IDs is not enough to act on.
Then add an IF node: if missing_count, extra_count, or different_count is greater than zero, route to a Stop And Error node whose message includes those counts and IDs. Stop And Error fails the execution and can pass that message to your error workflow (Stop And Error). Send the daily message before this step, so the all-clear still goes out if no error workflow is attached yet.
5. Watch the watcher
The count check is a scheduled workflow, so it can go quiet too. If the instance is down at the scheduled time, or someone unpublishes the check, you get no message, and that looks like a good day.
The cheap fix is the daily "0 missing" message above. The more complete fix is to ping something outside this n8n instance when the check finishes. A missing ping is then visible even if the instance is down. See catching a workflow that stopped running.
Start with one workflow
For each client-facing workflow, write down:
- The source and the destination. Where does a record start, and where does the client look for it?
- The stable ID. What key exists on both sides, and is it unique?
- The window and the margin. How long after midnight can a late write still belong to yesterday?
- Zero allowed? A poller may have a quiet day. An event-driven form-to-CRM flow should not.
- The daily message. Does the check speak on a clean day, and does the message list missing IDs on a bad day?
- Who watches the check? If this n8n instance is down, what outside the instance will notice?
An error tells you a run failed. A missing record tells you the work did not finish, even when every run was green.
If you want a one-time look at whether any of your n8n workflows are already failing quietly, run the free n8n Health Check. Paste your n8n URL and an API key. The key is used for that request and then discarded, and you will be asked for an email before the results are shown. The scan looks for silence, zero-item successes, deactivated workflows, and error rates. It will not catch a day that wrote 34 records instead of 40, because 34 is not zero. That is the gap the check above is for.
Sources
- n8n docs, Compare Datasets (four outputs, Fields to Skip Comparing, Fuzzy Compare, When There Are Differences): https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.comparedatasets
- n8n docs, Work with nodes (Always Output Data, On Error): https://docs.n8n.io/build/understand-workflows/workflow-components/work-with-nodes
- n8n docs, Filter node: https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.filter
- n8n docs, Schedule Trigger common issues: https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.scheduletrigger/common-issues
- n8n docs, Save and publish workflows: https://docs.n8n.io/build/understand-workflows/save-and-publish-workflows
- n8n docs, Stop And Error: https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.stopanderror
- n8n docs, Expression reference (
$("NodeName").all(branchIndex)): https://docs.n8n.io/build/work-with-data/transform-data/expression-reference - n8n docs, Executions API: https://docs.n8n.io/connect/n8n-api/build-and-run/executions
- n8n Community, "A daily count check for failures that never show as an error": https://community.n8n.io/t/a-daily-count-check-for-failures-that-never-show-as-an-error/322653