Code Fix: An error occurs when editing a workflow deployed from a K2 Package when the workflow has a field referencing a SmartObject

Issue Description

When a workflow field part contains a context browser object such as SmartObject > UMUser > GetUserDetails > DisplayName, attempting to load this workflow after deploying it to an environment via K2 Package and Deployment results in an error.

Error Message

The error message states: “Internal Server Error 500: Object reference not set to an instance of an object.”


  1. Ensure you have K2 Five RTM installed.
  2. Get the K2 Five RTM FP10 from Regional Support.
  3. Install the K2 Five RTM FP10 to apply the fix.
  4. Re-deploy the original workflow.
  5. Create a new package containing this workflow with K2 Package and Deployment.
  6. Deploy the package on the target environment. The workflow will now load successfully.


If the original workflow packaged via K2 Package and Deployment, followed these steps below in this order, the smartobjectFieldParts needs to be reconfigured. This can be achieved by removing and re-adding the field parts and deploying the workflow again to the K2 server. A new package can then be created via K2 Package and Deployment.


  1. Workflow is created
  2. Workflow is deployed to K2 server
  3. Workflow is deleted
  4. Workflow is loaded from deployed version KPRX
  5. Workflow loaded is deployed to K2 server


If you are unsure if these steps applies to your scenario, contact Regional Support.