<?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: resultOffset &amp; resultRecordCount Parameters are causing the query to return No records found in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830983#M490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that could be a bug on ArcGIS Server. It should return the records with the 2 parameters. I don't know how to remove it in the API&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 18:18:58 GMT</pubDate>
    <dc:creator>RodrigoFelga</dc:creator>
    <dc:date>2018-04-05T18:18:58Z</dc:date>
    <item>
      <title>resultOffset &amp; resultRecordCount Parameters are causing the query to return No records found</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830980#M487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;setDefinitionExpression is including the&amp;nbsp;&lt;SPAN&gt;resultOffset and&amp;nbsp;resultRecordCount&amp;nbsp;&lt;/SPAN&gt;parameters that are causing the service query to return &lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;&lt;EM&gt;No records found.&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;If I make the same query without these parameters it returns records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I eliminate these parameters from being added to the query when I set the definition expression?&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;How can I get the service to return records with these parameters set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resultOffset=0&lt;/P&gt;&lt;P&gt;resultRecordCount=1000&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="400672" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/400672_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;&lt;EM&gt;No records found query&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.maricopa.gov/arcgis/rest/services/Flo2d/Flo2d_Boundaries/MapServer/1/query?f=json&amp;amp;where=admp%20%3D%20%27121_PinnaclePeakWest%27&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=102100&amp;amp;resultOffset=0&amp;amp;resultRecordCount=1000" title="https://gis.maricopa.gov/arcgis/rest/services/Flo2d/Flo2d_Boundaries/MapServer/1/query?f=json&amp;amp;where=admp%20%3D%20%27121_PinnaclePeakWest%27&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=102100&amp;amp;resultOffset=0&amp;amp;resultRecordCount=1000"&gt;https://gis.maricopa.gov/arcgis/rest/services/Flo2d/Flo2d_Boundaries/MapServer/1/query?f=json&amp;amp;where=admp%20%3D%20%27121_…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove theses parameters&amp;nbsp;&lt;EM&gt;&amp;amp;resultOffset=0&amp;amp;resultRecordCount=1000&amp;nbsp;&lt;/EM&gt;then it returns the expected 72 records.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.maricopa.gov/arcgis/rest/services/Flo2d/Flo2d_Boundaries/MapServer/1/query?f=json&amp;amp;where=admp%20%3D%20%27121_PinnaclePeakWest%27&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=102100" title="https://gis.maricopa.gov/arcgis/rest/services/Flo2d/Flo2d_Boundaries/MapServer/1/query?f=json&amp;amp;where=admp%20%3D%20%27121_PinnaclePeakWest%27&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=102100"&gt;https://gis.maricopa.gov/arcgis/rest/services/Flo2d/Flo2d_Boundaries/MapServer/1/query?f=json&amp;amp;where=admp%20%3D%20%27121_…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also of note if I change the where statement&amp;nbsp;to 1=1&amp;nbsp;it will return all the records even with the&amp;nbsp;&lt;EM&gt;resultOffset and resultRecordCount &lt;/EM&gt;parameters&lt;EM&gt;.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.maricopa.gov/arcgis/rest/services/Flo2d/Flo2d_Boundaries/MapServer/1/query?f=json&amp;amp;where=1=1&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=102100&amp;amp;resultOffset=0&amp;amp;resultRecordCount=1000" title="https://gis.maricopa.gov/arcgis/rest/services/Flo2d/Flo2d_Boundaries/MapServer/1/query?f=json&amp;amp;where=1=1&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=102100&amp;amp;resultOffset=0&amp;amp;resultRecordCount=1000"&gt;https://gis.maricopa.gov/arcgis/rest/services/Flo2d/Flo2d_Boundaries/MapServer/1/query?f=json&amp;amp;where=1=1&amp;amp;returnGeometry=t…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 16:52:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830980#M487</guid>
      <dc:creator>JoshVan_Kylen</dc:creator>
      <dc:date>2018-04-05T16:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: resultOffset &amp; resultRecordCount Parameters are causing the query to return No records found</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830981#M488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that question should be on the ArcGIS Server topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Folow that link to see if it helps: &lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000012579" title="https://support.esri.com/en/technical-article/000012579"&gt;Error: Pagination is not supported&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830981#M488</guid>
      <dc:creator>RodrigoFelga</dc:creator>
      <dc:date>2018-04-05T17:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: resultOffset &amp; resultRecordCount Parameters are causing the query to return No records found</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830982#M489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;The service&amp;nbsp;indicates that&amp;nbsp;it supports advanced queries&amp;nbsp;including Pagination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how can I eliminate&amp;nbsp;the&amp;nbsp;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;resultOffset and&amp;nbsp;resultRecordCount&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;parameters and values from being included in the query that is generated by the&amp;nbsp;&lt;SPAN&gt;setDefinitionExpression?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:29:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830982#M489</guid>
      <dc:creator>JoshVan_Kylen</dc:creator>
      <dc:date>2018-04-05T17:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: resultOffset &amp; resultRecordCount Parameters are causing the query to return No records found</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830983#M490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that could be a bug on ArcGIS Server. It should return the records with the 2 parameters. I don't know how to remove it in the API&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:18:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830983#M490</guid>
      <dc:creator>RodrigoFelga</dc:creator>
      <dc:date>2018-04-05T18:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: resultOffset &amp; resultRecordCount Parameters are causing the query to return No records found</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830984#M491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changing the feature layer from&amp;nbsp;MODE_SNAPSHOT to the default&amp;nbsp;MODE_ONDEMAND seems to have solved the issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:30:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830984#M491</guid>
      <dc:creator>JoshVan_Kylen</dc:creator>
      <dc:date>2018-04-05T18:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: resultOffset &amp; resultRecordCount Parameters are causing the query to return No records found</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830985#M492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have experienced the same issue in ArcServer 10.51.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only workaround that worked for me when using the 4.x api was to enable feature access in the manager under Capabilities&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/405925_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then to reference the rest endpoint at "FeatureServer" instead of "MapServer"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #505051; font-size: 12px;"&gt;&lt;A href="https://domain/arcgis/rest/services/maps/test/FeatureServer"&gt;https://domain/arcgis/rest/services/maps/test/FeatureServer&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 21:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830985#M492</guid>
      <dc:creator>JackFairfield</dc:creator>
      <dc:date>2018-05-07T21:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: resultOffset &amp; resultRecordCount Parameters are causing the query to return No records found</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830986#M493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is only available in the 3.x version of the API.&amp;nbsp; The newer 4.x version doesn't have this property.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 21:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830986#M493</guid>
      <dc:creator>JackFairfield</dc:creator>
      <dc:date>2018-05-07T21:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: resultOffset &amp; resultRecordCount Parameters are causing the query to return No records found</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830987#M494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove line 774 of Search.js and it should go away.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/146331/pagination-not-supported-error-occurs-when-searching-feature-layers-using-the/308735#308735"&gt;https://gis.stackexchange.com/questions/146331/pagination-not-supported-error-occurs-when-searching-feature-layers-using-the/308735#308735&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:27:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830987#M494</guid>
      <dc:creator>EricO_Neal1</dc:creator>
      <dc:date>2019-01-15T18:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: resultOffset &amp; resultRecordCount Parameters are causing the query to return No records found</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830988#M495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the similar issue.&lt;/P&gt;&lt;P&gt;I found the problem is at the REST API level when querying a ArcGIS Server Map/Feature Service with a spatial filter.&lt;/P&gt;&lt;P&gt;If the resultOffset and resultRecordCount are not set, it returns all the matching records, if they are set the query returns wrong number of records. for example, if the resultRecordCount is set to 500, it only returns 36 records with&amp;nbsp;exceededTransferLimit=True.&lt;/P&gt;&lt;P&gt;This issue should affect all the other APIs that wraps the REST API, such as Javascript API, Python API, ArcGIS Runtime SDKs...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 23:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/resultoffset-resultrecordcount-parameters-are/m-p/830988#M495</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-03-09T23:16:04Z</dc:date>
    </item>
  </channel>
</rss>

