AnsweredAssumed Answered

Geo-processing result returning zero result

Question asked by akshay.5.loya on Nov 9, 2017
Latest reply on Nov 11, 2017 by rscheitlin

I have developed a geoprocessing service as below.

 

I'm then consuming it in web app builder with following code:

 

var lineSymbolQuery = new SimpleLineSymbol(
SimpleLineSymbol.STYLE_DASH,
new Color([255, 0, 0]),
3);
this.geometryService = new GeometryService(this.config.queryLayer.geomService);
var params1 = new ProjectParameters();
params1.geometries = [result.features["1"].geometry];
var outSR1 = new esri.SpatialReference({ wkid: 32646 });     ///because my data is in this spatial reference 
params1.outSR = outSR1;
this.geometryService.project(params1, lang.hitch(this, function (projectedPoints) {
projectedPoints;
LARService.setOutSpatialReference(outSR1);
/*var inputProfileGraphic = new Graphic(result.features["0"].geometry, null, {
OID: 1
});*/
var clickPointGraphic = new Graphic(result.features["0"].geometry, lineSymbolQuery);

var inputLineFeatures = new FeatureSet();
inputLineFeatures.features = [clickPointGraphic];
var params = {
"Route": inputLineFeatures
};

LARService.execute({
params
}).then(lang.hitch(this, function (results) {
results;
}));
 
This model works completely fine on ArcMap but I get a null result when I execute through web app builder. Can someone please help me understand where I'm going wrong. 
Thanks in advance. 

Outcomes