Exchange EDB Guides

Eseutil Illegal Duplicate Key What error -1605 (JET_errKeyDuplicate) means and how to save your mailboxes

Leena Taylor Paul By Updated October 21, 2026 6 min read

Eseutil illegal duplicate key is error -1605, which the Extensible Storage Engine names JET_errKeyDuplicate.

Microsoft's Windows Server guide links the error to index corruption. Duplicate the .edb before you try anything else. Save mail from the duplicate, then test an offline defrag on a second one or restore a backup.

Error number-1605
ESE name JET_errKeyDuplicate
First step Duplicate the .edb

Eseutil stops with error -1605 and Microsoft gives that error one short line in its error list. Your next step is up to you.

Your next move after an eseutil illegal duplicate key error should be a plan, not a second repair. You get what Microsoft documents about -1605 and an order of steps that protects your mail.

What Does Illegal Duplicate Key Mean in Eseutil?

Eseutil illegal duplicate key means the Extensible Storage Engine (ESE) found a key twice where only one copy is allowed. Extensible Storage Engine Error Codes lists -1605 as JET_errKeyDuplicate with the text "There is an illegal duplicate key."

ESE is the database engine behind Exchange .edb files. Eseutil shows its error names and numbers. Reference for Common Eseutil Errors lists many of them for Exchange 2007 without -1605.

What Causes Eseutil Illegal Duplicate Key Errors?

Microsoft calls -1605 a sporadic error that can come from index corruption. Windows Server guidance covers Active Directory domain controllers. No Exchange source in the table below names a separate cause.

Microsoft source Product What it says
Extensible Storage Engine Error Codes Windows ESE JET_errKeyDuplicate, "There is an illegal duplicate key."
Troubleshoot Jet database errors and recovery steps Active Directory Sporadic error, can be due to index corruption
Reference for Common Eseutil Errors Exchange 2007 Does not list -1605

Until you save the mail elsewhere, your damaged .edb is the sole copy.

How do You Protect Your Mail After Error -1605?

Duplicate the .edb first, then save mail from a duplicate before you try another fix.

1
Copy the files
Dismount the database, then duplicate the .edb with its log files on another drive. Make two duplicates. Microsoft's Exchange 2007 guide lists copying the database files as a step before repair, per How to Run Eseutil /P (Repair).
2
Inspect the header
Check the database header on your copy with eseutil /mh before a -1605 repair. For Exchange 2007, Microsoft says dump mode leaves files unchanged and prints a Repair Count once a repair has happened, per Eseutil /M File Dump Mode.
3
Save the mail
Export the mailboxes people need from the first duplicate with Univik Software, which opens it offline.
4
Defrag the second duplicate
Use eseutil /d on the second duplicate. Exchange 2007 documentation recommends 110 percent free disk space for it, per Eseutil /D Defragmentation Mode.
5
Restore or rebuild
Bring back your latest good backup. With no backup, create a new database and move the saved mail into it.

Eseutil /D rebuilds indexes in a new database. Microsoft says it deletes the original file by default once it finishes in Exchange 2007, per Eseutil /D Defragmentation Mode.

Switch /t sets the temporary database name, per the help text in How to Run Eseutil /D (Defragmentation). Point it at a drive with free space. Exchange EDB File Too Big covers the space math.

eseutil /d "F:\Work\Mail01.edb" /t"F:\Temp\Mail01_defrag.edb"

Command options sit in Eseutil Commands Reference.

Illustration of mail saved from a database copy
Work on duplicates of the .edb and leave the original file unchanged.

“When the repair tool itself gives up, stop repairing. Save the mailboxes from a spare copy before you decide what to fix.”

Nick Rogers, Founder of Univik

Will a Second Eseutil /p Repair Fix Error -1605?

Not on your only copy. Eseutil /p repairs in place. Exchange 2007 guidance says that makes a full roll forward from earlier backups impossible, per How to Run Eseutil /P (Repair).

Repair works at table level and not at application level. Repair can finish with consistent tables and a database that still cannot mount.

Microsoft says to finish a repair with Eseutil /D and Isinteg -fix in Exchange 2007. Skip them only if you plan to salvage mail and discard the database.

Before You Run Eseutil /p explains what hard repair removes. If mounting fails for another reason, Exchange Database Won't Mount matches error codes to causes.

How do You Save Mailboxes From a Database That Shows Error -1605?

Exchange EDB Converter from Univik converts dismounted .edb files on Windows. You need neither Exchange Server nor Outlook.

When transaction logs sit beside the .edb, Univik Software replays them into a working copy, as eseutil /r does. When no logs exist, the app repairs that working copy itself.

If the database engine cannot open a file at all, Univik Software scans raw data directly as a last resort. Broken sections are skipped.

Dirty or locked files go to a working folder before they open, so leave database size plus 256 MB free there. On a damaged Exchange 2010 database, messages without a folder record go to Recovered items and keep subject, sender and date.

Mailbox tree and message preview of an opened Exchange database
In the app. Review the mailboxes and folders found before you choose between a restore and a rebuild.

PST export from a -1605 database follows the steps in How to Convert EDB to PST.

Which Option Fits After Error -1605?

Four options exist after error -1605. Options differ in what they do to your original file.

Option What it does Watch for
Offline defrag (eseutil /d) Rebuilds indexes in new database Deletes original by default, so use duplicate
Hard repair (eseutil /p) Corrects damage at table level Earlier backups cannot roll forward fully
Backup restore Brings back database as saved Log replay ends at repair point after a repair
Univik Software Opens dismounted .edb and exports mailboxes Trial saves 10 messages per folder, licences from $99 for 2 PCs
Key Takeaways
  • Eseutil illegal duplicate key is JET_errKeyDuplicate, error -1605.
  • Microsoft links -1605 to index corruption in its Active Directory guide.
  • Duplicate the .edb twice and leave the original file alone.
  • Save mail from one duplicate and test eseutil /d on the other.
  • Eseutil /p repairs in place and cuts roll forward from earlier backups.
Save the Mailboxes Before the Next Repair

See the mailboxes of a damaged .edb in Univik Software ahead of the next repair. Trial edition saves 10 messages per folder. Licences start at $99 for 2 PCs.

Free Download See all features

Questions About Eseutil Illegal Duplicate Key Errors

Is error -1605 the same as JET_errKeyDuplicate?

Yes. Extensible Storage Engine Error Codes lists -1605 as JET_errKeyDuplicate with the text "There is an illegal duplicate key."

Does an eseutil illegal duplicate key error mean the mail is lost?

Not by itself. Error -1605 names a duplicate key, not a missing message. Open a duplicate offline to check which mailboxes survive.

Where does Microsoft describe error -1605?

Troubleshoot Jet database errors and recovery steps lists it for Active Directory on Windows Server as a sporadic error that can be due to index corruption. Name and text come from the ESE error list.

How do you fix the illegal duplicate key Exchange error?

Duplicate the .edb twice and save the mail from one duplicate. Test an offline defrag on the other or restore a backup. Microsoft names no single Exchange fix for -1605.

What does an offline defrag do about error -1605?

Offline defrag rebuilds indexes in a new database, as Eseutil /D Defragmentation Mode explains for Exchange 2007. For Active Directory, Microsoft lists an offline defrag when the issue persists after semantic analysis. Test it on a duplicate.

Should I use eseutil /p again?

No, not on your only copy. Eseutil /p repairs in place, so keep it for a duplicate.

Does -1605 appear outside Exchange?

Yes. Microsoft lists it for Active Directory databases on Windows Server domain controllers.

Can I open a dismounted .edb without Exchange Server?

Yes. Install Univik Software on Windows, then point it at the .edb. No mail server or Outlook install is required.

Leena Taylor Paul

Leena Taylor Paul covers Exchange database errors for the Univik team, which has shipped Windows mail tools since 2013. Last checked October 2026. Contact our support team if eseutil still stops with error -1605.

More Exchange EDB Guides

All Univik guides for Exchange mailbox databases, grouped by what you need to do next.