No ratings

Object Reference Error on Workflow Deployment


Object Reference Error on Workflow Deployment

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.


This error appears when deploying a workflow:


"Missing reference at SmartObjectField. Error: Object reference not set to an instance of an object. Stack Location: K2Process '[WORKFLOW]' > Stack End."



None of the steps inside the workflow are badged with an error.

Troubleshooting Steps

Check each of the SmartObjects referenced in your workflow and verify if the mappings are correct. If they are, test whether the SmartObject in use is valid and functioning as expected by:

  1. Searching for the SmartObject under the Context Browser on K2 Designer

    If you are unable to find the SmartObject under here, it is likely that there is an issue with the SmartObject.
  2. Using the SmartObject Test Tool execute the SmartObject

    If the SmartObject also throws an Object Reference error, then this is likely the root cause of the error on deployment.

    If you expand the properties and methods of this SmartObject on the tool and you see red X marks, then the SmartObject may be inconsistent with the backend layer.

    In this case, you would need to update the SmartObject so that the properties and methods are in sync with the underlying data.
Labels: (1)
Version history
Last update:
‎05-19-2021 12:04 PM
Updated by: