x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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

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

Product Version: UE 4.8
Tags:
errorlog.txt (35.0 kB)
errorlog.txt (35.0 kB)
more ▼

asked Aug 02 '15 at 01:51 PM in Packaging & Deployment

avatar image

Rankal
136 2 9 123

avatar image spyro Aug 18 '15 at 10:10 AM

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

avatar image hdm Aug 19 '15 at 04:23 PM

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

avatar image spyro Aug 20 '15 at 09:31 AM

Same problem here. Epic...?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

6 answers: sort voted first

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

more ▼

answered Aug 20 '15 at 01:09 PM

avatar image

Rankal
136 2 9 123

avatar image spyro Aug 20 '15 at 01:30 PM

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

avatar image sahir Aug 29 '15 at 01:52 PM

it work for me...thank you

avatar image Tecosaurus Sep 09 '18 at 01:42 PM

Not sure what it might be worth today, three years later, but hopefully it can assist somebody else. But what I did to fix mine was that I had to turn off encryption. Obviously it's not the desirable fix but if you're just looking to currently package the project at all for development testing purposes, I turned mine off and that worked.

avatar image Bolanho Oct 26 '15 at 12:08 AM

Thanks for sharing your solution, it worked.

avatar image cgiteach May 20 '16 at 12:21 PM

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

avatar image Calmfixup Mar 15 '17 at 08:27 PM

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

avatar image kmssn Mar 21 '17 at 11:27 PM

thank you for this fix

avatar image iBrews Jun 12 '17 at 07:26 PM

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!

avatar image Gabriel_League Nov 13 '17 at 11:19 AM

big thanks
it worked!!! :)

avatar image David Siegel Dec 18 '17 at 06:47 AM

Exactly the issue I had too. Thank you!

avatar image Fridge Games Dec 31 '17 at 03:53 PM

It works. Thank you!

avatar image aamir hussain May 07 '18 at 06:33 PM

Thanks Dear This Work for Me :D :*

avatar image HidingGlass Jul 20 '18 at 06:23 PM

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

Thank you!

avatar image BazzoFX Sep 15 '18 at 10:39 PM

I was having the same problem as well. I tried looking into the *.target extension but I wasn't sure what to delete.

Instead, I made a new blank project and migrate the root folder into the new project, loaded the input settings, change the game mode to MyGameMode and was able to have to fix the problem this way. This could possibly be an alternative if you do not want to delete any .target files from your system like me.

avatar image MANETH_BIMSARA Jan 19 '19 at 06:23 AM

Wow, it works.!! thank you.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Oct 17 '17 at 01:45 AM

avatar image

Mr_Behemoth
23 2 6

avatar image inedible.red Sep 12 '18 at 04:31 PM

Thank you !

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hey all, just another solution to this issue. Neither of the above solutions worked for me but i found my issue. I ended up renaming my project and that caused multiple ".Build.cs" ".Targets.cs" and ".cpp" files. For those who don't know, just in case, they are located in your unreal project file. Navigate to Intermediate -> Source. Inside that file you will see them. All I did was cut and paste the old ones, with the previous project name, outside the file structure on my desktop and it worked fine. no more issues.

more ▼

answered Jan 29 '19 at 02:41 AM

avatar image

Sam Drangsland
6

avatar image Podgyhodgy Feb 16 '19 at 09:56 PM

Thanks very much Sam Drangsland. That is the one that got me shifting. Shame the error logs don't see fit to name the suspects that they don't like. cheers anyway.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Thank you, it worked!

more ▼

answered Oct 09 '17 at 12:36 PM

avatar image

VRMMO
6 1 3 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I was having the same problem as well. I tried looking into the *.target extension but I wasn't sure what to delete.

Instead, I made a new blank project and migrate the root folder into the new project, loaded the input settings, change the game mode to MyGameMode and was able to have to fix the problem this way. This could possibly be an alternative if you do not want to delete any .target files from your system like me.

more ▼

answered Sep 15 '18 at 10:39 PM

avatar image

BazzoFX
30 2 5 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I was having the same issue after renaming a blueprint-only project. All I had to do was to go and delete the Intermediate folder in my project, and then package again.

more ▼

answered May 09 '19 at 10:27 AM

avatar image

apq
86 3 8 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question