Symptoms
Issue: In Visual Studio/K2 Studio, when attempting to deploy a smartforms integrated workflow, "An item with the same key has already been added" error prevents deployment.
Diagnoses
Diagnosis: We found that this error can be caused by duplicated rules or expressions which lead us to inspect the form. We found two unbound rules which normally would not cause an issue, however, an unbound rule that is never called in the form seems to create this situation.
Resolution
After removing the unused rules and checking the form back in, we were able to successfully deploy the workflow.