< class="prominent-subhead ">

Code Fix: An error occurs when deploying a workflow after upgrading to K2 Five (5.2)


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


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.


  1. Ensure you have K2 Five (5.3) installed.
  2. Download the K2 Five (5.3) FP5 from K2 Partner and Customer Portal.
  3. Install the K2 Five (5.3) FP5 to apply the fix.
  4. It is recommended to refresh the browser cache.