< class="prominent-subhead ">

REST: "Item has already been added" error when deploying

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.


An error appears when trying to deploy a 'Company Creation' process with the following message:

"Missing reference at SmartObjectField . Error: Item has already been added. Key in dictionary: Key being added: 'xxxxxx_xxxxx_xxxxxx'. Stack Location : K2Process 'Company Creation' > Stack End."

This halts deployment as the error does not go away.


The error occurs within a REST based type SmartObject whereby it has its methods generated via a REST Service instance. 

If the SmartObject gets removed here this appears to work as expected. Furthermore, the issue happens when trying to deploy. Saving the workflow causes no issues.  No errors can be seen when opening the process.


The issue has been resolved within FixPack 8 for K2 Cloud Update 6. If you do run into this issue please contact K2 Support for further assistance.