"Missing reference at SmartObjectField. SmartObject could not be found" error after changing choice column 

  • 16 February 2021
  • 0 replies
  • 142 views

Userlevel 5
Badge +20
 

"Missing reference at SmartObjectField. SmartObject could not be found" error after changing choice column 

KBS100195

PRODUCT
K2 Cloud K2 Cloud
K2 Five
BASED ON
K2 Cloud K2 Cloud
TAGS
K2 Designer for SharePoint
Workflow Designer
SharePoint
Workflow
Troubleshooting Document
How to Document
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.

Issue

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."

Symptoms

If a SharePoint Choice column exists, a SmartObject will be created for this Choice column.

Image

 

If using Workflow events integration:

Image

The Choice SmartObject will be automatically added as a Reference in the workflow:

Image

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.

Image

However, if you attempt to redeploy the workflow, the following error will occur:

Image

This is because the reference still exists, but the SmartObject does not.  Expanding this Reference does not return any properties:

Image

Resolution

To delete this reference and allow for workflow deployment, right-click on the bad reference in question and select the Delete option.

Image

 

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.
 

 

 

 


0 replies

Be the first to reply!

Reply