Issue

When upgrading to K2 Five (5.1) or K2 Cloud Update 4, deployed workflows are moved from their existing category folders to the All Items folder (root category) in the category tree in K2 Designer.

Note that the design workflow object remains under the original folder and the deployed version of the same workflow displays under the root category. After applying the resolution in this article the workflow will display in the original category as shown in the Before Upgrade image below.

Before Upgrade:

Image

After Upgrade:

Image

Cause

This issue occurs due to a bug in the upgrade script, which causes deployed workflows to be moved to the root category in the category tree.

Resolution

To resolve the issue, download the MoveWorkflowsToTheirRelatedHTML5DefinitionCategory.zip script. Make a backup of the K2 database, and then run the script. The SQL script will move the workflows back to their original folder.