// guides · n8n error index

n8n: stop posting the same item twice (Remove Duplicates across executions)

Your n8n workflow reposts old RSS items or alerts on every run? Use the Remove Duplicates node's previous-executions mode. Settings, JSON values and a gotcha we hit.

Updated 2026-10-16 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. Pick a stable key

    Choose a field that never changes for the same item: an RSS link or guid, a giveaway id, an email Message-ID. Avoid titles, which get edited, and timestamps, which change every run.

  2. Add the Remove Duplicates node

    Put it right before the node that posts or sends. Set Operation to Remove Items Processed in Previous Executions. On n8n versions without this operation, update n8n first.

  3. Set Keep Items Where to Value Is New

    Then set Value to Dedupe On to an expression such as {{ $json.link }}. Only items whose key was never seen before pass through.

  4. Seed it before the first real run

    The first run treats everything as new. Disable the Discord or email node, let the active workflow run once on its schedule so the keys are stored, then enable the node again. That avoids the first-run flood.

  5. Check it really works

    Let it run twice. The second run should output 0 items from the Remove Duplicates node. If it still outputs everything, see the gotcha below. Keeps copies, discards everything or fails with "exceeds the maximum history size"? See n8n Remove Duplicates not working, from 63 real runs.

The gotcha: a wrong operation value is silently ignored

If you build workflows as JSON (by hand, with a script, or with an AI assistant), the operation value must be exactly removeItemsSeenInPreviousExecutions, with logic set to removeItemsWithAlreadySeenKeyValues and the key in dedupeValue. We once shipped a made-up value. n8n imported it without any error, fell back to plain within-run deduplication, and reposted every item on every run. If your node shows Remove Items Repeated Within Current Input in the editor, that's what happened.

{
  "type": "n8n-nodes-base.removeDuplicates",
  "typeVersion": 2,
  "parameters": {
    "operation": "removeItemsSeenInPreviousExecutions",
    "logic": "removeItemsWithAlreadySeenKeyValues",
    "dedupeValue": "={{ $json.link }}"
  }
}

The other two modes

New rows vs changed rows

Remove Duplicates only remembers keys, so a row whose price or status changed still counts as already seen. To find new, changed and removed rows between two lists (for example a sheet and a database), use the Compare Datasets node: see n8n Compare Datasets not working (40 real runs).

Starting over

The same node has a Clear Deduplication History operation. Run it once (for example in a separate manual workflow) when you want everything to count as new again.

Skip the setup: free download

The RSS to Discord agent does all of this. It's tested, MIT-licensed, and comes as an n8n workflow plus a Python script.

Get the free RSS to Discord agent → Or have us build yours →

FAQ

Does the RSS Feed Trigger need this?

Usually not, because it tracks seen items itself. You need Remove Duplicates when you use the RSS Read node, an HTTP Request or a Schedule trigger, which have no memory between runs.

Where is the history stored?

In n8n's own database, per node by default, so it survives restarts.

Can I dedupe on two fields?

Yes. Join them in the expression, for example {{ $json.id + '|' + $json.price }}, so a price change counts as a new item.

Related guides

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.