Error reading values from Pipeline

Hi

I am new to webMethods. I am trying to retrieve all the failed services and resubmit them. I am retrieving the services using pub.monitor.service:GetList. I am iterating through the list and mapping the document to the document reference - myService that I have defined so that I can use the contextID property of the document to resubmit the service. When I run the same I can see the ContextID in the myService document in the results pane. But when I try to use the contextID to resubmit the service com.wm.app.b2b.server.ServiceException: Missing input from pipeline: contextID.

Thanks
Kukku

This service will retreive the context ID from the pipeline:

InvokeState is = InvokeState.getCurrentState();
IAuditRuntime iar = is.getAuditRuntime();
String contextStack = iar.getContextStack();
String rootContextID = “”;
String parentContextID = “”;
String contextID = “”;
int csl;
String contextStackLength = “”;

csl = contextStack.length;
contextStackLength = csl;
if (contextStack.length >= 5)
{
rootContextID = contextStack[0];
parentContextID = contextStack[2];
contextID = contextStack[3];
}
else if (contextStack.length >= 2)
{
contextID = contextStack[0];
parentContextID = contextStack[1];
rootContextID = contextStack[contextStack.length - 1];
}
else if (contextStack.length == 1)
{
contextID = contextStack[0];
parentContextID = “”;
rootContextID = contextStack[contextStack.length - 1];
}

IDataCursor pipelineCursor = pipeline.getCursor();
IDataUtil.put(pipelineCursor,“contextStack”, contextStack);
IDataUtil.put(pipelineCursor,“contextId”, contextID);
IDataUtil.put(pipelineCursor,“parentContextId”, parentContextID);
IDataUtil.put(pipelineCursor,“rootContextId”, rootContextID);

pipelineCursor.destroy();

while running the service its is giving this exception
$errorDump com.wm.lang.flow.FlowException:[ISS.0085.9159] Invalid input. ‘document’ is a required parameter of type IData

Sukumar,

Which service is causing the above error?Please detail us.

PublishAndWait