Symptoms
Error when starting a workflow on K2
Diagnoses
When calling a K2 Service to start a workflow you receive the following message:
ClientException: 25223 Process not found
at SourceCode.Workflow.Client.InternalConnection.Call(ArchiveX ar, MessageType msgtype)
at SourceCode.Workflow.Client.InternalConnection.CallFunction(ArchiveX ar)
at SourceCode.Workflow.Client.Connection.CreateProcessInstance(String ProcName, Int32 Version, String Layer)
at SourceCode.Workflow.Client.Connection.CreateProcessInstance(String ProcName)
at K2Service.Core.Workflow.UserWorkflowController.StartWorkflow(String processName, String folio) in c:ProjectsAllocations runkK2Service.CoreWorkflowUserWorkflowController.cs:line 88
at K2Service.Core.Workflow.GenericWorkflowController.StartWorkflow(String folio) in c:ProjectsAllocations runkK2Service.CoreWorkflowGenericWorkflowController.cs:line 129
at K2.CoreServices.Service.StartWorkflow(String workflowName, String folio) in c:ProjectsAllocations runkK2.CoreServicesService.Workflow.cs:line 19
Resolution
If you would like to start the workflow through using the K2 service page you must state both the K2 project and the K2 process in the format of K2ProjectK2Process. Once this has been specified then the process should start automatically.