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.
When you are trying to deploy a package onto an environment after rolling back a database, this appears to be green at the first stage. However, after clicking next on the deployment button this then fails displaying a list of multiple errors to do with a particular list in Sharepoint.
The error that appears within the Package & Deployment console is the following:
CreateListItemItem' not found in Service Object 'Change Requests' Definition. ---> System.Exception: Inconsistency detected between SmartObject 'List Name' and Service Object 'List Name' during loading of SmartObject Definition. Method : 'CreateListItemItem' not found in Service Object 'Change Requests' Definition. at SourceCode.SmartObjects.ServiceBrokerStore.Store.AddServiceInfo(XDocument doc, Boolean throwInconsistentException)
Firstly, check to make sure that the management of content types setting on the list is checked as the list may be different on the environment you are deploying to. If this is not done then you may experience inconsitencies in the package.
Secondly, make sure that the terms in the metadate store have not been disabled. If it has been disabled then this will need to be re-enabled. Once this has been done, the SmartObjects within Sharepoint will have to be regenerated and a new package will have to be taken after.
With this you should be able to deploy the package successfully.