When trying to open a K2 Five Process from the K2 Designer the following error occured:
"Server to client action failed
Instruction Processing has been disabled to protect the server state, reload and try again.
Error Details: The given key was not present in the dictionary."
The loading screen will also not complete.
This is caused by orphaned values in the Designer schema. To test this, please run the following SQL script:
USE [K2] --todo:Change to K2 DB name
SELECT [P].[Name], [P].[JsonId], [C].[Id], [C].[SessionId] FROM [Designer].[Process] AS [P]
INNER JOIN [Designer].[CollabData] AS [C]
ON [P].[JsonId] = [C].[SessionId]
WHERE [P].[Name] = 'Demo\K2Demo' --todo:Change to workflow full name
AND [C].[SessionId] = [C].[Id]
If this returns no data, do one of the following applicable steps: