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

  • 16 February 2021
  • 0 replies
  • 8 views

Badge +5
 

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

KB002950

PRODUCT
K2 Five 5.2
K2 Five (5.2) Fix Pack 18

 

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

  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.

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.

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

 


0 replies

Be the first to reply!

Reply