< class="prominent-subhead ">

When deploying a Package with P&D, an error appears: 'An item with the same key has already been added'

~~repeating-content.html~~
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

When trying to deploy a new package with the K2 P&D tool, the following error is shown:

'An item with the same key has already been added'

Symptoms

The error will occur at the package deployment step.

If you look in the Hostserver logs, you will notice a more descriptive error message:

"DeploymentServer","30003","DeploymentError","SourceCode.Runtime.Services.Forms","30003 An item with the same key has already been added."

Resolution

This is a known issue within the K2 Product.

There is a fix for this issue in K2 4.7 - please contact K2 Support for this fix.

This issue will not occur in newer versions of K2.