Code Fix: An error occurs when deploying a workflow after upgrading to K2 Five (5.2)
KB003201
PRODUCT
Issue Description
Javascript errors occurs when you deploy an existing workflow with email configurations after upgrading to K2 Five (5.2).
Error Message
The following javascript error message occurs: “Error: Constructor on type 'System.Object' not found”.
The following message is visible in the browser as well: “Message: Your workflow has encountered errors during deployment. Open the error console on the canvas to review the errors”.
Cause
With the introduction of the HTML mode of the mail configurations, the conversion of existing configurations missed an implementation of caching external reference configurations to allow for re-linking post conversion. This issue would only occur with SmartObject smartfields that does not relate to any item references in the same workflow.
Fix Description
External reference configurations are now cached prior to conversion to allow for re-linking.
Resolution
- Ensure you have K2 Five (5.2) installed.
- Download and install the K2 Five (5.2) May 2019 Cumulative Update from K2 Partner and Customer Portal.
- Download the K2 Five (5.2) May 2019 Cumulative Update FP2 from K2 Partner and Customer Portal.
- Install the K2 Five (5.2) May 2019 Cumulative Update FP2 to apply the fix.
- It is recommended to refresh the browser cache.