Two cases for one customer email. Nothing matched, so Salesforce opened another.
Email to Case never compares two emails and decides they ask the same thing. It looks for a token, then for three kinds of email header, and opens a new case when all four come back empty. So every duplicate is an email that arrived without its thread, arrived twice, was sent by your own org, or answered a case that was already closed. Each of those shows up differently in the records, and the queries below tell them apart before anyone merges a single case. When one email is creating multiple cases in the same minute, the cause is delivery, not threading, and it has its own section below.
Platform behaviour links to Salesforce Help and two Salesforce knowledge articles, all read on 23 November 2026. What comes from my own build is marked in the text.
Why does Email to Case open a second case for the same request?
Because matching failed at every step. With Lightning threading, Salesforce first searches the subject and body for a token of 23 characters. Then it compares the In-Reply-To header with the Message-ID stored on earlier emails, then the References header, then the Outlook Thread-Index header. Only when all four find nothing is a new case created. A duplicate means the reply lost all four on its way in.
| Matching step | What Salesforce compares | What removes it |
|---|---|---|
| 1. Threading token | A token of 23 characters, in the reply’s subject or its body | A customer who rewrites the subject; some email clients then drop the token |
| 2. In-Reply-To | The header against the Message-ID kept in MessageIdentifier on earlier emails | A mail relay that replaces the Message-ID Salesforce generated |
| 3. References | Every Message-ID listed in the header; the newest matching email wins | A gateway or third party client that strips or rewrites the header |
| 4. Thread-Index | The first 22 bytes of the Outlook header against ClientThreadIdentifier | Any reply that was not written in Outlook |
| No match | A new case is created | Nothing: this is where the duplicate comes from |
Order of matching and the 23 character token: Email-to-Case Threading. Relays, gateways and edited subjects: Email-to-Case Threading Limitations & Considerations. Both Salesforce Help, read on 23 November 2026.
Which of the five kinds of duplicate case do you have?
Read the trace before the fix. A burst of cases with one subject inside a few minutes is a loop with your own mail. Cases titled Undeliverable or Automatic reply are bounces and out of office notices. A new case whose subject starts with RE: is a reply that lost its thread. Two cases in the same minute are one email sent to two service addresses. A case opened just after another closed is a late reply.
| What the case list shows | Where it comes from | Where to look first |
|---|---|---|
| A run of cases with one subject, minutes apart | Salesforce mailing itself through a routing address | Auto response rules, queue and user email addresses, email alerts |
| Subjects such as Undeliverable or Out of office | Automatic mail answering your reply | The rules of the service mailbox, before it forwards to Salesforce |
| RE: in the subject, an open case already exists for that sender | A reply with no token and no usable headers | Threading settings, mail gateway, subject edits |
| Two cases created within one minute, same body | One email addressed to two routing addresses | To and CC on the two email messages |
| A new case minutes after an older one closed | A reply to a closed case | What your org does with mail on a closed case |
One email to two routing addresses: Salesforce Help calls it unsupported, in Email-to-Case Threading Limitations & Considerations, read on 23 November 2026.
How do you prove which kind it is from the data?
With two queries. The first finds senders who produced several email cases with the same subject in the last seven days. The second reads the incoming email messages on two of those cases. One Message-ID on both cases means one email reached Salesforce twice. Two Message-IDs that differ point to two separate emails Salesforce failed to connect, and the subject and addresses show why.
SELECT SuppliedEmail, Subject, COUNT(Id) total, MIN(CreatedDate) firstSeen
FROM Case
WHERE CreatedDate = LAST_N_DAYS:7 AND Origin = 'Email'
GROUP BY SuppliedEmail, Subject
HAVING COUNT(Id) >= 2
ORDER BY COUNT(Id) DESC
LIMIT 20Pick two cases of the largest group, copy their Ids, and list the email that came in on each, in time order:
SELECT Parent.CaseNumber, Parent.Status, Parent.ClosedDate,
CreatedDate, MessageIdentifier,
FromAddress, ToAddress, CcAddress, Subject
FROM EmailMessage
WHERE ParentId IN ('500AAA', '500BBB')
AND Incoming = true
ORDER BY CreatedDate ASC| What the second query returns | Kind of duplicate |
|---|---|
| FromAddress belongs to your company or to a mailer daemon | Loop, bounce or out of office |
| Same MessageIdentifier on both cases, different ToAddress | One email sent to two routing addresses |
| Different MessageIdentifier, the later subject starts with RE: | A reply that lost its thread |
| The newer email’s CreatedDate is later than the older case’s ClosedDate | A reply to a closed case |
MessageIdentifier holds the Message-ID of each email, per Email-to-Case Threading, read on 23 November 2026. Put your own case Ids in place of 500AAA and 500BBB; both queries only read.
Why is Email to Case creating multiple cases from one email?
Because the same message reached Salesforce more than once, through two routing addresses or through two forwarding paths. Threading cannot join the copies of a first email: none of them is a reply, so each one arrives as a new email. The sign is two or more cases created within the same minute, with one sender, one subject and one body. The same Message-ID on every copy proves it was one email, delivered several times.
| How the copies arrived | What the incoming emails show | What to change |
|---|---|---|
| The customer wrote to two service addresses, one in To and one in Cc | The same MessageIdentifier on both cases; ToAddress and CcAddress name both routing addresses | Publish one address per team; make the other service addresses aliases of one mailbox that forwards once |
| A mailbox forwards to Salesforce, and a group or alias that contains it forwards as well | The same MessageIdentifier and the same ToAddress on both cases | Keep one forwarding path per mailbox and remove the second rule |
| One distribution group holds two service mailboxes, and each forwards to its own routing address | The same MessageIdentifier; the Received lines in Headers name two different mailboxes | Forward the group’s mail from one mailbox only |
Turn on Save Email Headers on each routing address before you test. Salesforce describes that setting as saving email routing and envelope information, and describes the Headers field of an incoming email as its internet headers, kept for debugging and tracing. The Received lines in those headers, read from the bottom up, show the path each copy took.
To find the bursts, add the last arrival to the first query above. A group whose first and last case are seconds apart is one email delivered several times:
SELECT SuppliedEmail, Subject, COUNT(Id) total,
MIN(CreatedDate) firstIn, MAX(CreatedDate) lastIn
FROM Case
WHERE Origin = 'Email' AND CreatedDate = LAST_N_DAYS:7
GROUP BY SuppliedEmail, Subject
HAVING COUNT(Id) >= 2
ORDER BY COUNT(Id) DESC
LIMIT 20Then read the incoming email on two cases of one group, headers included:
SELECT ParentId, CreatedDate, MessageIdentifier,
ToAddress, CcAddress, Headers
FROM EmailMessage
WHERE ParentId IN ('500000000000001AAA', '500000000000002AAA')
AND Incoming = true
ORDER BY CreatedDate ASCFields MessageIdentifier, ToAddress, CcAddress and Headers: EmailMessage in the Salesforce Object Reference. Save Email Headers (saveEmailHeaders on EmailToCaseRoutingAddress): the Metadata API Developer Guide. Both read on 3 December 2026. Both queries only read; I ran them in my own org on 3 December 2026 to check that Salesforce accepts them. Put the Ids of two cases from one group in place of the two sample Ids.
What stops an Email to Case loop before it creates hundreds of cases?
One routing address that nothing in Salesforce ever sends from or to. Its loop detection starts only once more than 15 emails sharing one subject, one sender and one body arrive within 60 seconds, and a few more cases can be created before it stops. A loop slower than that never reaches the threshold, so nothing stops it. The four known causes are all settings, so the fix is removing the routing address from every one of them.
| Cause Salesforce names | How the loop runs | What to change |
|---|---|---|
| Out of office replies to the routing address | Each auto reply arrives as a new email | A rule in the service mailbox that files them before forwarding |
| Auto response rule with the routing address as Reply To or Sender | The confirmation comes back as a new request | A separate organisation wide address as sender |
| Queue or user email equal to a routing address | Every owner notification lands back in Email to Case | Give queues and users their own addresses |
| Email alerts that send to a routing address | An alert creates a case, the case fires the alert | Read the recipients of every case alert and flow that sends email |
The loop also has a quiet form. When the setting Notify Case Owners on New Emails is on, an owner or default owner whose email equals the routing address receives a notification for each new email, and Salesforce routes that notification back into the case as if the customer had written again.
Threshold, error text LIMIT_EXCEEDED and the four causes: Bounce back loop from Email-to-Case. Notification loop: Prevent Multiple or Duplicate Case Email Notifications. Both Salesforce knowledge articles, read on 23 November 2026.
When a customer writes to a closed case, reopen or open new?
Start a new case if closed cases feed reports or service clocks; reopen only if nothing counts them. A reopened case gets a new closing date and a longer handling time, though the work was already reported as done. In the insurance agency desk I built, a late reply starts a fresh case that points back to the old one, so finished work stays finished. Check first how often closed cases receive mail at all.
| Choice | What happens to the old case | Pick it when |
|---|---|---|
| Reopen the closed case | Status, closing date and time to close change | Nobody reports on closed cases or on time to close |
| New case linked to the old one | Stays closed; the new case carries the link | Reports, service clocks or surveys count closed cases |
| Leave the email on the closed case | Nothing changes, and unless someone watches closed cases, nobody answers it | Never: the customer waits for an answer that does not come |
One source of late replies is easy to miss. Orgs created from Winter ’23 onward put the threading headers into email alerts, and with Lightning threading every reply to an alert is added to the case. A customer who answers a closing email with thanks is writing to a closed case.
Replies to email alerts: Threading Automated Case Emails, Salesforce Help, read on 23 November 2026. The new linked case: the insurance agency case.
Does merging duplicate cases stop them coming back?
No, it cleans up the ones that already exist. A rep can merge up to three cases, choosing which one becomes the master and which field values it keeps. Related lists, feed items and child records move to the master, and later email that belongs to a merged case goes to the parent. The cause stays where it was, so the next duplicate arrives tomorrow.
| After a merge | What Salesforce Help says |
|---|---|
| Cases per merge | Up to three |
| The other cases | Deleted to the recycle bin for 15 days, or kept with Merged added to the subject, depending on the setting |
| Related lists, feed items, child records | Added to the master case |
| New email for a merged case | Associated with the parent case |
Where only the owner may work a case, merging needs its own rule. In the agency build, a rep merges from a search by the sender’s email, limited to open cases, so a closed case is never pulled back into work.
Merge behaviour: Merge Duplicate Cases in Lightning Experience; email after a merge: Email-to-Case Threading Limitations & Considerations; both read on 23 November 2026.
More on the same desk: Email to Case setup, Email to Case not creating cases, case assignment rules not working, business hours and SLA timers and a Service Cloud audit checklist.
Questions buyers ask about Email to Case duplicates
QDoes editing the subject line create a new case?
It can. Salesforce Help warns that some email clients drop the threading token when the customer edits the subject. Lightning threading then falls back to the headers, and only a reply with neither becomes a new case.
QWhy does one email create two or three cases at once?
Because it reached Salesforce two or three times: addressed to two routing addresses, or forwarded by two rules. Each copy is a new email, so each becomes a case. The same Message-ID on every copy confirms it; the section on multiple cases above shows where to look.
QWhy is Email to Case not creating a case at all?
Then the email stopped before it became a case: forwarding, the routing address, the sender, the daily limit or a rule on Case. The checks, in order, are in Email to Case not creating cases.
QHow should Email to Case be set up so duplicates do not start?
One routing address per inbox, nothing in Salesforce sending to it, Lightning threading on, and a rule for replies to closed cases, all decided before go live. The settings and the go live tests are in Email to Case setup.
QWhy do replies in a refreshed sandbox open new cases?
A refresh changes the org ID, and Salesforce Help says the Case Thread Token tied to the original org ID is then no longer valid. Test threading with emails sent after the refresh.
QCan a validation rule block out of office cases?
Salesforce suggests one as an optional step, such as a rule on Case that refuses a subject containing OOO. A mailbox rule is safer, because the validation rule also refuses a customer who happens to use the word.
QIs Ref ID threading still supported?
Only in maintenance mode. Salesforce Help, read on 23 November 2026, recommends the release update that disables Ref ID and switches to Lightning threading, which combines tokens and headers.
Serhii Skrypnyk, Senior Salesforce Administrator, Salesforce certified, on the platform since 2018. Reviewed 4 December 2026.
Build email to case once, without the loops
A Service Cloud build here starts at €12,325 for 145 hours, beginning with email to case: one routing address per inbox, queues, Lightning threading and a decision on closed cases. It includes thirty days of support after handover, up to eight hours in total, and a sixty day warranty.
If you are the only admin, or inherited the org, and duplicate cases are one request among many, monthly support from €680 for 8 hours takes requests like this off your list. If the worry is whether the case data can be trusted at all, the data quality check is €650: one working day, read only. If customers say your replies never reach them, that is a different fault, covered in Salesforce emails not received.
