deepikapals

[RPC Fault faultString="Unable to get value of param 'FID' for Job ID='   '

Discussion created by deepikapals on Apr 18, 2010
Latest reply on May 15, 2013 by hooraycorona
{
           field;//  contains state name
            var  geo:Geoprocessor=new geo();
            var  params:Object=new Objec();
            params.Expression="NAME_1"+field;
            geo.url=""; // contains the url of the service
            geo.submitJob(params);
           geo.addEventListener(GeoprocessorEvent.JOB_COMPLETE,jobComplete);
}
public function jobComplete(event:GeoprocessorEvent):void
{
           Alert.show(event.jobInfo.jobStatus.toString());
           geo.getResultData(event.jobInfo.jobID,"FID",new AsynchronousResponder(onResult,onFault));
          
           function onResult(//  declaration )
           {
                     Alert.show("success");
           }
          
           function onFault(info:Object,Token:null)
           {
                    Alert.show(info.toString());
           }
}

onFault function is called when geo.getResultData() is executed .Following is the error which occurs in my project:-
[RPC Fault faultString="Unable to get value of param 'FID' for Job ID='   ' .The job may not exist or it could still be executing or could have failed faultCode="500" faultDetail=""]

Both my job executes successfully and its resultant shapefile also contains values for field FID.

Outcomes