Code Fix: Attempting to deploy a K2 package where the environment contains two or more SmartObject Server types results in an error

  • 16 February 2021
  • 0 replies
  • 6 views

Badge +6
 

Code Fix: Attempting to deploy a K2 package where the environment contains two or more SmartObject Server types results in an error

KB001841

PRODUCT
K2 blackpearl 4.7
BASED ON
K2 blackpearl 4.7
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 adding another SmartObject Server type to the default environment library in K2 Workspace> Management Console> Environment Library, and attempting to deploy a workflow package using K2 Package and Deployment, an error occurs.

Error Message
Error message states: “Missing environment variable”.

Cause
The SmartObjectFields DisplayName was used instead of the FieldName, which caused a string with "(Default)" at the end to be passed in.

Repro Steps

  1. Create a workflow containing a SmartObject event.
  2. Deploy the workflow.
  3. Create a K2 package using K2 Package and Deployment.
  4. Browse to K2 Workspace> Management Console> Environment Library and add another SmartObject Server type.
  5. Try and deploy the package you created (make sure under the selected workflow you select create new version).

 

Resolution

  1. Ensure you have K2 4.7 installed.
  2. Install the K2 4.7 February 2017 Cumulative Update.
  3. Get the K2 4.7 February Cumulative Update FP5 from Regional Support.
  4. Install the K2 4.7 February Cumulative Update FP5 to apply the fix.

 


0 replies

Be the first to reply!

Reply