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.
After changing a SharePoint Choice column to a Single Line of Text column and regenerating the SmartObject, Views, and Forms; the Workflow deployment fails with this error:
"Missing reference at SmartObjectField. [SmartObjectSystemNameOfSharePointColumn] could not be found. K2 Process '[WorkflowName]' > Stack End."
If a SharePoint Choice column exists, a SmartObject will be created for this Choice column.
If using Workflow events integration:
The Choice SmartObject will be automatically added as a Reference in the workflow:
If this Choice column is changed to a Single Line of Text column and the SmartObject, Views and Forms regenerated as part of the development lifecycle; this Choice SmartObject will be deleted and refactored as a field of the main List SmartObject.
However, if you attempt to redeploy the workflow, the following error will occur:
This is because the reference still exists, but the SmartObject does not. Expanding this Reference does not return any properties:
To delete this reference and allow for workflow deployment, right-click on the bad reference in question and select the Delete option.
Double check that the correct reference is selected by hovering over the reference's name and expanding the reference in question. Missing properties of the reference selected will indicate that it is no longer valid.