<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IdentifyTask doesn't return results in ArcGIS Server 10.4 in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/identifytask-doesn-t-return-results-in-arcgis/m-p/846852#M548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;Every request I make I'm not able to get results:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="color: #000000;"&gt;{"results":[]}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;both when I make the request from my WebApp, and if I fill the form in ArcGIS REST services interface.&lt;/P&gt;&lt;P&gt;The code is simple and in old version (Server 10.2.2, Oracle 12c, ArcGIS JSAPI 3.14 it worked well.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;idTask &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;esri.tasks.IdentifyTask(&lt;SPAN style="color: #458383;"&gt;layerUrl&lt;/SPAN&gt;);&lt;BR /&gt; &lt;SPAN style="background-color: #ffe4ff;"&gt;identifyParams&lt;/SPAN&gt; = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;esri.tasks.IdentifyParameters();&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;tolerance &lt;/SPAN&gt;= &lt;SPAN style="color: #0000ff;"&gt;5&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;returnGeometry &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;layerIds &lt;/SPAN&gt;= [&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;1&lt;/SPAN&gt;];&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;layerOption &lt;/SPAN&gt;= esri.tasks.IdentifyParameters.LAYER_OPTION_ALL;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;width &lt;/SPAN&gt;= &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;width&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;width &lt;/SPAN&gt;= &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;height&lt;/SPAN&gt;;&lt;BR /&gt; dojo.connect(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"onClick"&lt;/SPAN&gt;, &lt;SPAN&gt;execIdTask&lt;/SPAN&gt;);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;function &lt;/SPAN&gt;&lt;SPAN&gt;execIdTask&lt;/SPAN&gt;(evt) {&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;p &lt;/SPAN&gt;= evt.mapPoint;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;geometry &lt;/SPAN&gt;= &lt;SPAN style="color: #458383;"&gt;p&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapExtent &lt;/SPAN&gt;= &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.extent;&lt;BR /&gt; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;idTask&lt;/SPAN&gt;.execute(&lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;function &lt;/SPAN&gt;(r) {&lt;BR /&gt; &lt;SPAN&gt;handleClick&lt;/SPAN&gt;(r)&lt;BR /&gt; });&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Could it be related to something in DB GRANTS to SDE user?&lt;/P&gt;&lt;P&gt;Or something related to new version of AGServer?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Gianni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Aug 2017 13:33:14 GMT</pubDate>
    <dc:creator>GianniContino</dc:creator>
    <dc:date>2017-08-22T13:33:14Z</dc:date>
    <item>
      <title>IdentifyTask doesn't return results in ArcGIS Server 10.4</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/identifytask-doesn-t-return-results-in-arcgis/m-p/846852#M548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;Every request I make I'm not able to get results:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="color: #000000;"&gt;{"results":[]}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;both when I make the request from my WebApp, and if I fill the form in ArcGIS REST services interface.&lt;/P&gt;&lt;P&gt;The code is simple and in old version (Server 10.2.2, Oracle 12c, ArcGIS JSAPI 3.14 it worked well.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;idTask &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;esri.tasks.IdentifyTask(&lt;SPAN style="color: #458383;"&gt;layerUrl&lt;/SPAN&gt;);&lt;BR /&gt; &lt;SPAN style="background-color: #ffe4ff;"&gt;identifyParams&lt;/SPAN&gt; = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;esri.tasks.IdentifyParameters();&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;tolerance &lt;/SPAN&gt;= &lt;SPAN style="color: #0000ff;"&gt;5&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;returnGeometry &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;layerIds &lt;/SPAN&gt;= [&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;1&lt;/SPAN&gt;];&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;layerOption &lt;/SPAN&gt;= esri.tasks.IdentifyParameters.LAYER_OPTION_ALL;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;width &lt;/SPAN&gt;= &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;width&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;width &lt;/SPAN&gt;= &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;height&lt;/SPAN&gt;;&lt;BR /&gt; dojo.connect(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"onClick"&lt;/SPAN&gt;, &lt;SPAN&gt;execIdTask&lt;/SPAN&gt;);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;function &lt;/SPAN&gt;&lt;SPAN&gt;execIdTask&lt;/SPAN&gt;(evt) {&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;p &lt;/SPAN&gt;= evt.mapPoint;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;geometry &lt;/SPAN&gt;= &lt;SPAN style="color: #458383;"&gt;p&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapExtent &lt;/SPAN&gt;= &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.extent;&lt;BR /&gt; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;idTask&lt;/SPAN&gt;.execute(&lt;SPAN style="background-color: #e4e4ff;"&gt;identifyParams&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;function &lt;/SPAN&gt;(r) {&lt;BR /&gt; &lt;SPAN&gt;handleClick&lt;/SPAN&gt;(r)&lt;BR /&gt; });&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Could it be related to something in DB GRANTS to SDE user?&lt;/P&gt;&lt;P&gt;Or something related to new version of AGServer?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Gianni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 13:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/identifytask-doesn-t-return-results-in-arcgis/m-p/846852#M548</guid>
      <dc:creator>GianniContino</dc:creator>
      <dc:date>2017-08-22T13:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask doesn't return results in ArcGIS Server 10.4</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/identifytask-doesn-t-return-results-in-arcgis/m-p/846853#M549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Gianni,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;I don't see where you are specifying the identifyParams.spatialReference in your code. Even though your code worked in older versions you should have&amp;nbsp;identifyParams.spatialReference in newer versions.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 14:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/identifytask-doesn-t-return-results-in-arcgis/m-p/846853#M549</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-08-22T14:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask doesn't return results in ArcGIS Server 10.4</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/identifytask-doesn-t-return-results-in-arcgis/m-p/846854#M550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the the layer you are using is a query layer you need to enable the St_Geometry library on Oracle Server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/configure-oracle-extproc.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/configure-oracle-extproc.htm"&gt;Configure the extproc to access ST_Geometry in Oracle—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 08:06:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/identifytask-doesn-t-return-results-in-arcgis/m-p/846854#M550</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2018-03-12T08:06:21Z</dc:date>
    </item>
  </channel>
</rss>

