# System.ArgumentException: An item with the same key has already been added

**URL:** <https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, build-failed, question\
**Created:** [September 12, 2016, 11:32pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254 "2016-09-12T23:32:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Talismansa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Talismansa](https://forums.unrealengine.com/u/Talismansa)\
**Post date:** [September 12, 2016, 11:32pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/1 "2016-09-12T23:32:10Z")

</div>

I cloned a previous project and worked about 50 hours on it.  
Now that everything is completed, I can’t build it.

The error keeps coming up “An item with the same key has already been added”

I’ve searched for duplicate files in the project folder. And went through my assets to make sure they’re not named the same.

Did a build of other projects and they all build fine. so it’s definitely this specific project.

I don’t know what else to do. [link text][1]

[106734-log.txt](https://forums.unrealengine.com/uploads/short-url/90WBqncQ5Jt4H0jQ1fPP0dadx6o.txt) (6.06 KB)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [September 16, 2016, 10:04pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/2 "2016-09-16T22:04:24Z")

</div>

Talismansa,

Please try the following suggestions to resolve the issue you’re running in to:

Delete your Intermediate and Saved folders from your project. Reopen the project and try to package. If you run into the issue again, please look into the following resolved AnswerHub posts:

- [AnswerHub: An item with the same key][1]
- [AnswerHub: Error: An item with the same key has already been added][2]

Please let me know if none of the suggestions work for you, thanks!

[Can't package game (an item with the same key has already been added) - Programming & Scripting - Epic Developer Community Forums](https://answers.unrealengine.com/questions/284296/cant-package-game-an-item-with-the-same-key-has-al.html)  
[2]: [Unable to Package C++ Project for Win32/Win64 - Platform & Builds - Epic Developer Community Forums](https://answers.unrealengine.com/questions/98621/error-an-item-with-the-same-key-has-already-been-a.html)

---

<div class="post-metadata">

**Author:** ![Talismansa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Talismansa](https://forums.unrealengine.com/u/Talismansa)\
**Post date:** [September 16, 2016, 10:20pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/3 "2016-09-16T22:20:24Z")

</div>

Hi , I did try all the options in the other posts but none worked for me.

So I migrated everything to a new project and it worked.  
It looks like it’s a cloning issue. I guess I just have to set up all the project settings every time.

---

<div class="post-metadata">

**Author:** ![Talismansa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Talismansa](https://forums.unrealengine.com/u/Talismansa)\
**Post date:** [September 16, 2016, 10:20pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/4 "2016-09-16T22:20:47Z")

</div>

Hi , I did try all the options in the other posts but none worked for me.

So I migrated everything to a new project and it worked.  
It looks like it’s a cloning issue. I guess I just have to set up all the project settings every time.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [September 21, 2016, 5:24pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/5 "2016-09-21T17:24:45Z")

</div>

I’m glad that you were able to get the issue to go away by moving your project to a new project. Perhaps if you run into this again, try deleting the Intermediate, Saved & Config folders and see if that wipes the project settings enough to fix the issue. Granted, you would have to set your configuration back up, but it’s just a thought.

Let me know if you find great reproduction steps, thanks!

---

<div class="post-metadata">

**Author:** ![SmallKoreanSeal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SmallKoreanSeal](https://forums.unrealengine.com/u/SmallKoreanSeal)\
**Post date:** [December 22, 2017, 7:22pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/6 "2017-12-22T19:22:57Z")

</div>

Same here… had to migrate my project to a new one…  
I think the error came because I moved the project 1 folder up inside the content folder

---

<div class="post-metadata">

**Author:** ![Anonymous\_e2146bbc272e3d7099d7d32eb3146e81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_e2146bbc272e3d7099d7d32eb3146e81](https://forums.unrealengine.com/u/Anonymous_e2146bbc272e3d7099d7d32eb3146e81)\
**Post date:** [June 27, 2018, 8:12am UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/7 "2018-06-27T08:12:10Z")

</div>

thank you ,i solved my problem.

---

<div class="post-metadata">

**Author:** ![Anonymous\_e2146bbc272e3d7099d7d32eb3146e81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_e2146bbc272e3d7099d7d32eb3146e81](https://forums.unrealengine.com/u/Anonymous_e2146bbc272e3d7099d7d32eb3146e81)\
**Post date:** [June 27, 2018, 8:13am UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/8 "2018-06-27T08:13:49Z")

</div>

as you say ,i delete the saved and intermediate folders ,then the package passed ,and show the really problem where is it .when delete it ,everything was fine .

---

<div class="post-metadata">

**Author:** ![EndrewsFrota](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EndrewsFrota](https://forums.unrealengine.com/u/EndrewsFrota)\
**Post date:** [August 4, 2018, 6:08pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/9 "2018-08-04T18:08:22Z")

</div>

It’s easy to solve this problem! Just go to the project folder and search for .target and pay for the oldest one!

---

<div class="post-metadata">

**Author:** ![sensvos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sensvos](https://forums.unrealengine.com/u/sensvos)\
**Post date:** [December 11, 2018, 12:23pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/10 "2018-12-11T12:23:33Z")

</div>

What did you mean by paying for the oldest one?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a1c0a9ff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a1c0a9ff](https://forums.unrealengine.com/u/anonymous_user_a1c0a9ff)\
**Post date:** [December 24, 2018, 9:39pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/11 "2018-12-24T21:39:32Z")

</div>

Thank you , deleting the saved and intermediate folders did resolve my issue. 🙂

---

<div class="post-metadata">

**Author:** ![MattSowards](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MattSowards](https://forums.unrealengine.com/u/MattSowards)\
**Post date:** [September 8, 2020, 8:15pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/12 "2020-09-08T20:15:10Z")

</div>

hello none of these worked for me? and i tried on a brand new project still happens anyone know why?/

---

<div class="post-metadata">

**Author:** ![linden1029](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linden1029](https://forums.unrealengine.com/u/linden1029)\
**Post date:** [November 14, 2020, 8:55am UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/13 "2020-11-14T08:55:15Z")

</div>

Make sure you havnt doubled up on Pluggins this is an issue i had. had two different versions of the same plugin

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b24a9716](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b24a9716](https://forums.unrealengine.com/u/anonymous_user_b24a9716)\
**Post date:** [April 15, 2022, 5:00pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/14 "2022-04-15T17:00:46Z")

</div>

Thank you for this response. I had installed a Plugin at the engine level and then added the folder to the Plugins folder of my project. Deleting one or the other fixed the problem.

---

<div class="post-metadata">

**Author:** ![Galvanicus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Galvanicus](https://forums.unrealengine.com/u/Galvanicus)\
**Post date:** [July 5, 2022, 7:06pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/15 "2022-07-05T19:06:46Z")

</div>

My Issue in this case was that I had a project plugin and an engine plugin of the same type/name. So I zipped my engine plugin and re-ran the packaging and it worked. That’s what the duplicate was.

---

<div class="post-metadata">

**Author:** ![AGH\_NAGGAR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/agh_naggar/32/490207_2.png) [@AGH\_NAGGAR](https://forums.unrealengine.com/u/AGH_NAGGAR)\
**Post date:** [August 21, 2022, 12:37pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/16 "2022-08-21T12:37:35Z")

</div>

Yeah! Same problem here and erasing the duplicated project plugins fix my problem.

---

<div class="post-metadata">

**Author:** ![DmitriyBeloborod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DmitriyBeloborod](https://forums.unrealengine.com/u/DmitriyBeloborod)\
**Post date:** [February 19, 2023, 8:06pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/17 "2023-02-19T20:06:34Z")

</div>

I deleted the file in :\Program Files\Epic Games\UE\_5.1\Engine\Plugins\Marketplace  
folder “TwinmotiontoUnrealBeta” and left only TwinmotiontoUnreal.  
and everything worked

---

<div class="post-metadata">

**Author:** ![Aeeocrop1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aeeocrop1](https://forums.unrealengine.com/u/Aeeocrop1)\
**Post date:** [February 22, 2023, 5:15pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/18 "2023-02-22T17:15:15Z")

</div>

thanks!!! the easiest way to fix the problem!!!

---

<div class="post-metadata">

**Author:** ![SourceSoft](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SourceSoft](https://forums.unrealengine.com/u/SourceSoft)\
**Post date:** [April 28, 2023, 5:58pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/19 "2023-04-28T17:58:12Z")

</div>

Just delete the plugins folder in your project and you are good to go.

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [September 3, 2023, 6:53pm UTC](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254/20 "2023-09-03T18:53:06Z")

</div>

I just want to mention this because it fixed the problem for me. I was using a marketplace plugin, but because I wanted to make changes to the plugin, I had copied it into my project’s “Plugins” folder, and thus when building it saw that there were two copies of the plugin - One in the Unreal Engine Plugins folder, and one in my Project hence the “Item with the same key” error. Removing the plugin from the engine folder while packaging fixed the issue.  
Thanks to [TheoT](https://forums.unrealengine.com/u/TheoT) for the solution.

[Next page](https://forums.unrealengine.com/t/system-argumentexception-an-item-with-the-same-key-has-already-been-added/370254.md?page=2)
