<?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 Re: findtask query providing weird results.. Feature ID: -1 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/findtask-query-providing-weird-results-feature-id/m-p/512970#M47851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alex,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever get this figured out?&amp;nbsp; I'm having the same problem.&amp;nbsp; My find task is not returning any results when executed through the Javascript API (with the google extension).&amp;nbsp; I get results, however, when I run it from the REST services directory, but all of my results have that Feature ID: -1.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stephanie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 May 2011 11:37:44 GMT</pubDate>
    <dc:creator>StephanieWidas</dc:creator>
    <dc:date>2011-05-02T11:37:44Z</dc:date>
    <item>
      <title>findtask query providing weird results.. Feature ID: -1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/findtask-query-providing-weird-results-feature-id/m-p/512969#M47850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been using the sample findtask query to a datagrid &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_map_datagrid.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_map_datagrid.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And incorporated it into my js online map and its returning weird results..&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.co.frederick.va.us/planning/newmap1copy2.html"&gt;http://www.co.frederick.va.us/planning/newmap1copy2.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using the google javascript console... I get this message when I click on the search button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.io.script.jsonp_dojoIoScript6._jsonpCallback({"error":{"code":500,"message":"Object reference not set to an instance of an object.","details":[]}});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've asked this question on another forum and they have been very helpful in locating the error..&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.stackexchange.com/questions/2447/why-is-my-findtask-not-working-correctly-can-someone-please-look-at-my-code-and/2449#2449"&gt;http://gis.stackexchange.com/questions/2447/why-is-my-findtask-not-working-correctly-can-someone-please-look-at-my-code-and/2449#2449&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running the find query from within the feature definition, I was shown, that I get a result but its returning a "Feature ID: -1".. That seems to be the problem.. Which still doesn't help me understand what&amp;nbsp; the problem actually is.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis1.co.frederick.va.us/ArcGIS/rest/services/Planning/Planning_PAT/MapServer/find?searchText=54++++A++++25&amp;amp;contains=true&amp;amp;searchFields=PIN&amp;amp;sr=102113&amp;amp;layers=5&amp;amp;returnGeometry=true"&gt;http://gis1.co.frederick.va.us/ArcGIS/rest/services/Planning/Planning_PAT/MapServer/find?searchText=54++++A++++25&amp;amp;contains=true&amp;amp;searchFields=PIN&amp;amp;sr=102113&amp;amp;layers=5&amp;amp;returnGeometry=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hoping someone can help explain to me more about what is going on and what I have to do to fix the problem.. I am going to see about getting the mapservice recreated and see if that fixes the problem. I tried the find query on a different mapservice in our organization and got the same results as well..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 13:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/findtask-query-providing-weird-results-feature-id/m-p/512969#M47850</guid>
      <dc:creator>AlexGray</dc:creator>
      <dc:date>2010-10-14T13:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: findtask query providing weird results.. Feature ID: -1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/findtask-query-providing-weird-results-feature-id/m-p/512970#M47851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alex,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever get this figured out?&amp;nbsp; I'm having the same problem.&amp;nbsp; My find task is not returning any results when executed through the Javascript API (with the google extension).&amp;nbsp; I get results, however, when I run it from the REST services directory, but all of my results have that Feature ID: -1.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stephanie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 11:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/findtask-query-providing-weird-results-feature-id/m-p/512970#M47851</guid>
      <dc:creator>StephanieWidas</dc:creator>
      <dc:date>2011-05-02T11:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: findtask query providing weird results.. Feature ID: -1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/findtask-query-providing-weird-results-feature-id/m-p/512971#M47852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alex... or anyone else with similar problems with the find task - -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I posted a similar problem to the forum.&amp;nbsp; I ended up going to tech support with the issue.&amp;nbsp; You can go to my thread for more information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/29274-Find-Task-on-XY-Event"&gt;http://forums.arcgis.com/threads/29274-Find-Task-on-XY-Event&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;~Stephanie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 17:30:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/findtask-query-providing-weird-results-feature-id/m-p/512971#M47852</guid>
      <dc:creator>StephanieWidas</dc:creator>
      <dc:date>2011-05-11T17:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: findtask query providing weird results.. Feature ID: -1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/findtask-query-providing-weird-results-feature-id/m-p/512972#M47853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have been using the sample findtask query to a datagrid &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_map_datagrid.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_map_datagrid.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And incorporated it into my js online map and its returning weird results..&lt;BR /&gt;&lt;A href="http://www.co.frederick.va.us/planning/newmap1copy2.html"&gt;http://www.co.frederick.va.us/planning/newmap1copy2.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;using the google javascript console... I get this message when I click on the search button&lt;BR /&gt;dojo.io.script.jsonp_dojoIoScript6._jsonpCallback({"error":{"code":500,"message":"Object reference not set to an instance of an object.","details":[]}});&lt;BR /&gt;&lt;BR /&gt;I've asked this question on another forum and they have been very helpful in locating the error..&lt;BR /&gt;&lt;A href="http://gis.stackexchange.com/questions/2447/why-is-my-findtask-not-working-correctly-can-someone-please-look-at-my-code-and/2449#2449"&gt;http://gis.stackexchange.com/questions/2447/why-is-my-findtask-not-working-correctly-can-someone-please-look-at-my-code-and/2449#2449&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Running the find query from within the feature definition, I was shown, that I get a result but its returning a "Feature ID: -1".. That seems to be the problem.. Which still doesn't help me understand what&amp;nbsp; the problem actually is.. &lt;BR /&gt;&lt;A href="http://gis1.co.frederick.va.us/ArcGIS/rest/services/Planning/Planning_PAT/MapServer/find?searchText=54++++A++++25&amp;amp;contains=true&amp;amp;searchFields=PIN&amp;amp;sr=102113&amp;amp;layers=5&amp;amp;returnGeometry=true"&gt;http://gis1.co.frederick.va.us/ArcGIS/rest/services/Planning/Planning_PAT/MapServer/find?searchText=54++++A++++25&amp;amp;contains=true&amp;amp;searchFields=PIN&amp;amp;sr=102113&amp;amp;layers=5&amp;amp;returnGeometry=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hoping someone can help explain to me more about what is going on and what I have to do to fix the problem.. I am going to see about getting the mapservice recreated and see if that fixes the problem. I tried the find query on a different mapservice in our organization and got the same results as well..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked your findTask url: &lt;/SPAN&gt;&lt;A href="http://arcxdev/ArcGIS/rest/services/contour/TestPoints/MapServer"&gt;http://arcxdev/ArcGIS/rest/services/contour/TestPoints/MapServer&lt;/A&gt;&lt;SPAN&gt;. on browser. I get this message: Service 'Planning/Planning_PAT' of type 'MapServer' does not exist or is inaccessible. Secondly, is your statement: findTask.execute(query,showResults); should be: findTask.execute(findParams,showResults);?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 17:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/findtask-query-providing-weird-results-feature-id/m-p/512972#M47853</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-05-12T17:16:10Z</dc:date>
    </item>
  </channel>
</rss>

