K2 Five Workflow Designer: "Server to client action failed" error appears

  • 15 February 2022
  • 0 replies
  • 21 views

Userlevel 5
Badge +20
 

K2 Five Workflow Designer: "Server to client action failed" error appears

KBS100129

PRODUCT
K2 Five
BASED ON
K2 Five 5.0
TAGS
SmartForms Designer
Workflow Designer
SmartForms
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

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.

 

Image

Symptoms

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
GO

 

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] = 'DemoK2Demo' --todo:Change to workflow full name
AND [C].[SessionId] = [C].[Id]

Troubleshooting Steps

If this returns no data, do one of the following applicable steps:

 

  1. If you have deployed recently, and made very minimal changes (or no changes), open K2 Designer and navigate to your workflow.
    Click on "Delete" and select YES on the confirmation:
    Image
    Note: The icon of the workflow will change after the delete:
    Image

    Edit the workflow using the K2 Designer and deploy again.

    Run the SQL Script again to confirm that it returns data.
     
  2. If you haven't deployed in a while and have made a lot of changes, please contact support.

0 replies

Be the first to reply!

Reply