# Program.Main: ERROR: An item with the same key has already been added

**URL:** <https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387>\
**Category:** Blueprint\
**Tags:** unreal-engine, crash, editor, feedback, package-error, question\
**Created:** [August 2, 2015, 1:51pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387 "2015-08-02T13:51:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rankal\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rankal\_1](https://forums.unrealengine.com/u/Rankal_1)\
**Post date:** [August 2, 2015, 1:51pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/1 "2015-08-02T13:51:46Z")

</div>

Hello , I am quite new to the world of Game engines and Coding. I am an artist and using Blueprint I was trying to get an arch viz project done with just some assets and the 1st Person shooter BP.  
As the project was evolving I kept packaging and building( all for windows x64) , checking if all works. After a wile I kept getting this line of code on package. anyone has any Idea where to start? Bare in mind I don’t understand code 2 well but I can follow steps:P

Attached the full log

```
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: An item with the same key has already been added.
MainFrameActions: Packaging (Windows (64-bit)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=1
MainFrameActions: Packaging (Windows (64-bit)): Domain_ProcessExit
MainFrameActions: Packaging (Windows (64-bit)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Windows (64-bit)): copying UAT log files...
MainFrameActions: Packaging (Windows (64-bit)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Windows (64-bit)): BUILD FAILED

```

link text

link text

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c0687f281](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c0687f281](https://forums.unrealengine.com/u/anonymous_user_c0687f281)\
**Post date:** [August 18, 2015, 10:10am UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/2 "2015-08-18T10:10:32Z")

</div>

Same problem here (compiled source from GitHub). Did work with binary version from launcher.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5f76c0a3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5f76c0a3](https://forums.unrealengine.com/u/anonymous_user_5f76c0a3)\
**Post date:** [August 19, 2015, 4:23pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/3 "2015-08-19T16:23:30Z")

</div>

Same problem in my case:  
**Program.Main: ERROR: An item with the same key has already been added.**

No idea what causes this situation.

LOG ATTACHED

link text

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c0687f281](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c0687f281](https://forums.unrealengine.com/u/anonymous_user_c0687f281)\
**Post date:** [August 20, 2015, 9:31am UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/4 "2015-08-20T09:31:18Z")

</div>

Same problem here. Epic…?

---

<div class="post-metadata">

**Author:** ![Rankal\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rankal\_1](https://forums.unrealengine.com/u/Rankal_1)\
**Post date:** [August 20, 2015, 1:09pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/5 "2015-08-20T13:09:47Z")

</div>

so I found the problem my end if anyone still cares. There is a target file in the source folder and somehow I managed to duplicate it. i searched for _.target_ in the windows search bar and deleted one of them. Worked. The problem occurred as I was running it from Google drive folder on 2 different PC’s and it must have duplicated it. Don’t use anything like Dropbox or GDrive with projects it breaks them. Tortoise SVN my next choice worked like a charm

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c0687f281](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c0687f281](https://forums.unrealengine.com/u/anonymous_user_c0687f281)\
**Post date:** [August 20, 2015, 1:11pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/6 "2015-08-20T13:11:53Z")

</div>

Thanks, but there is no \*.target file in my whole project…

Do you mean this folder here?

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/7/1973de17102b2ffc6b0f9833d57876977bac0f89.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c0687f281](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c0687f281](https://forums.unrealengine.com/u/anonymous_user_c0687f281)\
**Post date:** [August 20, 2015, 1:30pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/7 "2015-08-20T13:30:40Z")

</div>

I don’t use Dropbox or Googledrive and there seems to be no \*.target file in my project.

---

<div class="post-metadata">

**Author:** ![sahir\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sahir\_1](https://forums.unrealengine.com/u/sahir_1)\
**Post date:** [August 29, 2015, 1:52pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/8 "2015-08-29T13:52:18Z")

</div>

it work for me…thank you

---

<div class="post-metadata">

**Author:** ![TurkowLoKo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/turkowloko/32/1045740_2.png) [@TurkowLoKo](https://forums.unrealengine.com/u/TurkowLoKo)\
**Post date:** [October 26, 2015, 12:08am UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/9 "2015-10-26T00:08:50Z")

</div>

Thanks for sharing your solution, it worked.

---

<div class="post-metadata">

**Author:** ![cgiteach](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cgiteach/32/559818_2.png) [@cgiteach](https://forums.unrealengine.com/u/cgiteach)\
**Post date:** [May 20, 2016, 12:21pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/10 "2016-05-20T12:21:31Z")

</div>

Thank you, this problem appeared when I’ve duplicated a project under 4.11

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e756e0ec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e756e0ec](https://forums.unrealengine.com/u/anonymous_user_e756e0ec)\
**Post date:** [March 15, 2017, 8:27pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/11 "2017-03-15T20:27:15Z")

</div>

Yes! Fixed it for me; I was pulling my hair out over here lol

---

<div class="post-metadata">

**Author:** ![kalekarri](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kalekarri](https://forums.unrealengine.com/u/kalekarri)\
**Post date:** [March 21, 2017, 11:27pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/12 "2017-03-21T23:27:47Z")

</div>

thank you for this fix

---

<div class="post-metadata">

**Author:** ![iBrews](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ibrews/32/1069219_2.png) [@iBrews](https://forums.unrealengine.com/u/iBrews)\
**Post date:** [June 12, 2017, 7:26pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/13 "2017-06-12T19:26:05Z")

</div>

wow, can’t believe that fixed it. thank you! in my case it seems like the problem was that I had changed the name of my project, and there was a .target file that still had the old name of the project. Deleted that and everything was fine!

---

<div class="post-metadata">

**Author:** ![VRMMO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VRMMO](https://forums.unrealengine.com/u/VRMMO)\
**Post date:** [October 9, 2017, 12:36pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/14 "2017-10-09T12:36:06Z")

</div>

Thank you, it worked!

---

<div class="post-metadata">

**Author:** ![MrBehemo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrBehemo](https://forums.unrealengine.com/u/MrBehemo)\
**Post date:** [October 17, 2017, 1:45am UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/15 "2017-10-17T01:45:50Z")

</div>

I had this problem after duplicating a project in 4.16. The target file was duplicated, but removing it alone did not help.

What did work in the end was deleting the whole Intermediate folder.

---

<div class="post-metadata">

**Author:** ![Gabriel\_League](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabriel\_League](https://forums.unrealengine.com/u/Gabriel_League)\
**Post date:** [November 13, 2017, 11:19am UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/16 "2017-11-13T11:19:31Z")

</div>

big thanks  
 it worked!!! 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_eccc5cf1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_eccc5cf1](https://forums.unrealengine.com/u/anonymous_user_eccc5cf1)\
**Post date:** [December 18, 2017, 6:47am UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/17 "2017-12-18T06:47:09Z")

</div>

Exactly the issue I had too. Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fdada97b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fdada97b](https://forums.unrealengine.com/u/anonymous_user_fdada97b)\
**Post date:** [December 31, 2017, 3:53pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/18 "2017-12-31T15:53:15Z")

</div>

It works. Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9ce630c0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9ce630c0](https://forums.unrealengine.com/u/anonymous_user_9ce630c0)\
**Post date:** [May 7, 2018, 6:33pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/19 "2018-05-07T18:33:36Z")

</div>

Thanks Dear This Work for Me 😃  
:\*

---

<div class="post-metadata">

**Author:** ![HidingGlass](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HidingGlass](https://forums.unrealengine.com/u/HidingGlass)\
**Post date:** [July 20, 2018, 6:23pm UTC](https://forums.unrealengine.com/t/program-main-error-an-item-with-the-same-key-has-already-been-added/327387/20 "2018-07-20T18:23:59Z")

</div>

This is the post you’re directed to when you’re being punished for not using good Versioning Control…

Thank you!

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