Code Fix: In K2 Designer, using a combination of properties from many SmartObjects from “Recent” in the context browser causes an error

  • 16 February 2021
  • 0 replies
  • 22 views

Badge +5
 

Code Fix: In K2 Designer, using a combination of properties from many SmartObjects from “Recent” in the context browser causes an error

KB002398

PRODUCT
K2 Five 5.1
K2 Five (5.1) Fix Pack 1

 

Issue Description

In K2 Designer, when you use a combination of properties from different SmartObjects from the “Recent” node in the context browser an error occurs. This also causes an error in K2 Package and Deployment when deploying a workflow created with this issue.

Error Message

The following errors occur in K2 Workflow Designer:

Console error #1 when dragging from “Recent”: “Uncaught TypeError: Cannot read property 'methods' of undefined”

Console error #2 when dragging from “Recent”: “Uncaught TypeError: Cannot read property 'length' of undefined”

 

The following error occurs in K2 Package and Deployment:

Error when deploying: “Missing reference at SmartObjectField . Error: The best overloaded method match for 'string.IsNullOrEmpty(string)' has some invalid arguments.”

Cause

When a Recent item is dragged over, the last cached SmartObject is used.

Resolution

  1. Ensure you have K2 (5.1) installed.
  2. Get the K2 Five (5.1) FP1 from Regional Support.
  3. Install the K2 Five (5.1) FP1 to apply the fix.
It is recommended to refresh the browser cache.

 


0 replies

Be the first to reply!

Reply