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!
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.
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.
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!
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 .
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.
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.
I deleted the file in :\Program Files\Epic Games\UE_5.1\Engine\Plugins\Marketplace
folder “TwinmotiontoUnrealBeta” and left only TwinmotiontoUnreal.
and everything worked
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 for the solution.