Issue 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

  1. Ensure you have K2 4.7 installed.
  2. Install the K2 4.7 February 2017 Cumulative Update.
  3. Get the K2 4.7 February 2017 Cumulative Update FP1 from Regional Support.
  4. Install K2 4.7 February 2017 Cumulative Update FP1 to apply the fix.