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.

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.