AnsweredAssumed Answered

IdentifyTask doesn't return results in ArcGIS Server 10.4

Question asked by gcontino on Aug 22, 2017
Latest reply on Mar 12, 2018 by ppapadopoulosmarathondata-gr-esridist

Hello,

I'm experimenting an issue about IdentifyTask in ArcGIS API for JavaScript 3.18, with ArcGIS Server 10.4 and DB Oracle 12c (with SDE ST_GEOMETRY).

Every request I make I'm not able to get results: 

{"results":[]}

both when I make the request from my WebApp, and if I fill the form in ArcGIS REST services interface.

The code is simple and in old version (Server 10.2.2, Oracle 12c, ArcGIS JSAPI 3.14 it worked well.

[...]

idTask = new esri.tasks.IdentifyTask(layerUrl);
identifyParams = new esri.tasks.IdentifyParameters();
identifyParams.tolerance = 5;
identifyParams.returnGeometry = true;
identifyParams.layerIds = [0, 1];
identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL;
identifyParams.width = map.width;
identifyParams.width = map.height;
dojo.connect(map, "onClick", execIdTask);
}

function execIdTask(evt) {
var p = evt.mapPoint;
identifyParams.geometry = p;
identifyParams.mapExtent = map.extent;
idTask.execute(identifyParams, function (r) {
handleClick(r)
});
}

Could it be related to something in DB GRANTS to SDE user?

Or something related to new version of AGServer?

Thanks in advance

Gianni

Outcomes