Symptoms
After a Check-in, I have the following error when I try to open the designer:
Server Error
An item with the same key has already been added.
More Details
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Objectt] Parameters, Booleann] NullList, MarshalMessageType CallType)
at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteSessionCall(String TypeName, String MethodName, Objectt] Parameters, Booleann] NullList)
at SourceCode.Forms.Management.FormsManager.DoSessionCall(String method, Objectt] parameters)
at SourceCode.Forms.Management.FormsManager.GetForms(Criteria criteria)
at SourceCode.Forms.AppFramework.DesignerFramework.GetRecentUserForms(String user, Int32 count)
at SourceCode.Forms.AppFramework.DesignerFramework.GetRecentUserObjects(String user, Int32 count)
at SourceCode.Forms.Default.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Diagnoses
This type of issue could appears if you do the following action (We are not sure of the origin):
- Check-out the form
- Modify the workflow linked to this form
- Check-in the form.
It's not a best practice.
The best practice is: Before the modification of a workflow, do a Check-in of the corresponding forms.
We try to provide script of the roll-back of a form (https://help.k2.com/kb001311) but it doesn't fix the issue.
Resolution
You solved internally the issue by doing :
1) Save as of the form.
2) Delete the original form.