Fix Exchange Public Folder Migration Error: Duplicate Key Already Added
Question details
Users experience a failure when attempting to migrate Exchange public folders to Exchange Online, accompanied by an error regarding a duplicate key.

- Product
- Microsoft Exchange
- Device & OS
- not provided
- Scenario
- Migrating on-premises public folders to Exchange Online.
- Observed behavior
- The migration batch process fails and displays the error message: 'An item with the same key has already been added.'
Ensure you have the necessary administrator permissions in Exchange Online and verify that your newly created destination public folder mailboxes are currently empty before initiating the migration.
Verify Empty Destination and Skip Deleted Items
Ensure no duplicate items exist in the destination and reduce migration data overlap by explicitly excluding deleted items and folders.
This error typically indicates that a duplicate item or hidden key is attempting to migrate into Exchange Online. Skipping deleted items reduces unnecessary data transfer and bypasses corrupted or duplicate hidden files.
Log into your Exchange Admin Center and verify that all destination public folders created in Exchange Online are completely empty.
When configuring your public folder migration batch parameters, apply the settings to explicitly skip deleted items and deleted folders.
Start or resume the migration batch to see if the exclusion of deleted items resolves the duplicate key conflict.

Collect Migration Diagnostics using PowerShell
Run specific PowerShell cmdlets to generate a detailed migration report that identifies the exact mailbox and item causing the failure.
Experience a Seamless and Lightweight Office Alternative
While Microsoft Exchange and Microsoft 365 handle complex enterprise server administration and email migrations, your daily document creation shouldn't require complex troubleshooting. WPS Office provides a free, lightweight, and incredibly user-friendly alternative to Microsoft Office. It easily opens Word, Excel, and PowerPoint files without heavy subscription fees, allowing you to focus on your work rather than administrative overhead.
- 1. Visit the Official Website: Go to the official WPS Office website to access the free installer.
- 2. Download the App: Click the 'Free Download' button to get the lightweight installation package for your operating system.
- 3. Install and Work: Run the installer, open the application, and instantly begin editing your Microsoft Office documents without any complex setup.

Frequently Asked Questions
What does 'An item with the same key has already been added' mean during an Exchange migration?
This error occurs when the migration process attempts to copy an email, folder, or setting to a destination mailbox that already contains an object with the exact same unique identifier (key). It is often caused by residual data, overlapping migrations, or corrupted deleted items.
How do I ensure my destination Exchange Online public folders are empty?
You can verify the contents of your destination public folders by logging into the Exchange Admin Center, navigating to the Public Folders section, and checking the item count and size for each target folder to confirm they read zero.
Can I bypass duplicate items without losing my active public folder data?
Yes. You can adjust your migration batch settings to skip deleted items and deleted folders, or increase the BadItemLimit. This often bypasses the corrupted or duplicate items without impacting your active, necessary data.




