Fix: ArgumentException: An element with the same key already exists in the dictionary.

If you recieve the following error in the logs on your server, you may have a corrupted Power.dat file, please try the steps listed below. 

ArgumentException: An element with the same key already exists in the dictionary.
at System.Collections.Generic.Dictionary`2[Vector3i,PowerItem].Add (Vector3i key, .PowerItem value) [0x00000] in <filename unknown>:0 
at PowerManager.AddPowerNode (.PowerItem node, .PowerItem parent) [0x00000] in <filename unknown>:0 
at PowerManager.Read (System.IO.BinaryReader br) [0x00000] in <filename unknown>:0 
at PowerManager.LoadPowerManager () [0x00000] in <filename unknown>:0 
at GameManager+<StartAsServer>c__Iterator2.MoveNext () [0x00000] in <filename unknown>:0 
at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0

1. Stop your server.
2. Go to File Manager\Saves\WorldName\YourGameName
3. Locate the Power.dat file and click the globe beside it to download a copy. (for backup purposes)
4. Tick the box to the left of the Power.dat file
5. Click Delete (on the bar near the top)
6. Start your server and check the logs to see if the error returns.
7. If the error doesn't return then try connecting to the server.

If you can connect and all seems good then you may get rid of the downloaded Power.dat file. If the error comes back you can upload the Power.dat file back to the server as it was likely not the issue.

If this is not the fix or you are not comfortable trying this, please submit a support ticket and we can help.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

I cant find my server / Modded serverlist

In 7DTD there are several server lists, Standard, Modded, Peer, Friends, History and Lan below is...

Roll back to older than current version

Click "Steam Beta Update" enter alpha<version number>    example:  alpha16.1 Click...

Stuck in dying state when connecting onto server

You should have someone else who is connected on the server remove your bedroll. This will then...

How to: Webmap permissions - Alloc's fixes

You will first need to install Alloc's server fixes from the mod manager, make sure you choose...

How to: update to alpha 16 from the experimental branch

  To update your server to the Official Alpha 16 release follow these steps: Make sure your...