Hi Shane,A quick tip is to surround your code in CODE tags (the # icon) to avoid stripping off the formatting.I can get it to work in Javascript when the input data is set as a constant value or selected form the layer list. When I try to run it with user defined input (a Feature Set derived from a Feature Layer) the tool fails. I am at a complete loss!
Try putting a breakpoint in this section and stepping through line-by-line:
parcelsFS.queryFeatures(query, function (features) {
var inputFeatures = new esri.tasks.FeatureSet();
inputFeatures = features.features;
var params= { "Table_Name":inputFeatures};
gpTask.submitJob(params, completeCallback , statusCallback,function(error){
//alert(error);
//esri.hide(loading);
});
});
and verify that what you're doing here makes sense in all instances. If you're sometimes inputting a featureLayer, and at other times a featureSet, you may find that this is causing the problem.Steve