Code Fix: An error occurs when migrating a workflow instance to another version
KB002950
PRODUCT
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”.
Cause
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.
Resolution
- Ensure you have K2 Five (5.2) installed.
- Download the K2 Five (5.2) FP18 from K2 Partner and Customer Portal.
- Install the K2 Five (5.2) FP18 to apply the fix.
Considerations
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.