< class="prominent-subhead ">

Code Fix: An error occurs when migrating a workflow instance to another version


Issue Description

When you migrate a workflow instance to another version of the workflow, an error occurs.

Error Message

The following error occurs: “Object reference not set to an instance of an object”.


This occurs on any HTML5 designer workflow that contains outcomes. Outcomes were loaded by ID and since ID’s are different between workflow versions, outcomes cannot be loaded.


  1. Ensure you have K2 Five (5.2) installed.
  2. Download the K2 Five (5.2) FP18 from K2 Partner and Customer Portal.
  3. Install the K2 Five (5.2) FP18 to apply the fix.


After installing Fix Pack 18, any new workflows will work when you migrate an instance to another version. 

For workflows in a broken state, you must change the [ExecutingProcID] value in the [K2].[Server].[ProcInst] table to the previous ID before Live Instance Management was attempted. Restart your K2 Host Server.

It is recommended to create a backup of your K2 database before making any changes in the database.