Code Fix: An error occurs when loading a workflow deployed via K2 package and deployment

  • 16 February 2021
  • 0 replies
  • 44 views

Badge +5
 

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

KB002229

PRODUCT
K2 Five 5.0
K2 Five (5.0) Fix Pack 10
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

 

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

Resolution

  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.

Considerations

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.

 


0 replies

Be the first to reply!

Reply