Code Fix: An error occurs when creating a new version of a View or Form by deploying a package
KB001811
PRODUCTIssue Description
When creating a new version of a View or a Form by deploying a package an error occurs stating that an item with the same key has already been added.
Error Message
“An item with the same key has already been added”.
The following error is logged in the K2 HostServer log: “DeploymentServer","30003","DeploymentError","SourceCode.Runtime.Services.Forms","30003 An item with the same key has already been added."
Cause
The logic that merges the new version of the View with the old version, changed the GUIDS of 2 cells to the same GUID.
Resolution
- Ensure you have K2 4.7 installed.
- Install the K2 4.7 February 2017 Cumulative Update.
- Get the K2 4.7 February 2017 Cumulative Update FP1 from Regional Support.
- Install K2 4.7 February 2017 Cumulative Update FP1 to apply the fix.