I am getting this error when trying to call back to a process from another process in a server event. The original code setting up the asynchronous event looks like:
K2.Synchronous =
false;
K2.ProcessInstance.DataFieldss"SerialNumber"].Value = K2.SerialNumber;
Pretty simple, and then from the second processs there is this code in a server event:
SourceCode.Workflow.Client.
ProcessInstance _pi = _conn.OpenProcessInstance(Convert.ToInt32(K2.ProcessInstance.DataFieldss"ParentProcessID"].Value));
String serialNumber = _pi.DataFieldsd"SerialNumber"].Value.ToString();
//Open and complete the ServerItem
ServerItem serverItem = _conn.OpenServerItem(serialNumber);
serverItem.Finish();
So the quirky thing is, the process that calls to finish the original process is successfully doing so. Meaning the original process is taken out of it's pause state and continues. But the calling process goes int an error state with the following error:
25225 Server Item Not Found with Serial 7206_60
I would assume that it is not finding the process if it weren't for the fact that the original process completes the activity that it is paused on when this call is made. Any ideas?