Introduction

Multiple escalations per process in K2 Designer for SharePoint will prevent process deployment.

Note: The error described in the KB was found to be present in both Update KB001200 and Update KB001230.

Error Scenario

When a process is created using K2 Designer for SharePoint and the process has multiple escalations, when the user attempts to deploy the process an error is thrown.
The reason for the error was a result of the escalations being authored as duplications when there was more than one.

Error Workaround

The error can be avoided by only having one escalation.

Error Messages

Error message for Update KB001200

System.Exception: System.NullReferenceException: Object reference not set to an instance of an object.

at SourceCode.WebDesigner.Authoring.SharePoint.GenerateProcess.CreateActivityMultiEscalations(XmlNode activity, Activity newActivity, Process newProcess)

at SourceCode.WebDesigner.Authoring.SharePoint.GenerateProcess.CreateActivity(XmlNode activity, Activity newActivity, XmlDocument xmlProcess, Process newProcess)

at SourceCode.WebDesigner.Authoring.SharePoint.GenerateProcess.CreateActivies(XmlDocument xmlInputData, XmlDocument xmlProcess, DefaultProcess& newProcess, String UserName)

at SourceCode.WebDesigner.Authoring.SharePoint.GenerateProcess.Generate(String UserName, Int32 ProcessID, String InputData, String ProcessXML, String ConnectionString)

at SourceCode.WebDesigner.Authoring.SharePoint.GenerateProcess.Generate(String UserName, Int32 ProcessID, String InputData, String ProcessXML, String ConnectionString)


Error message for Update KB001230

Image

 

Error Resolution


The above error has been resolved and can be corrected by installing the latest Update package.