<?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: FeatureLayer always returns 1000 features in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1086586#M74181</link>
    <description>&lt;P&gt;I have seen this behavior as well. Are you explicitly stating the "resultRecordCount" parameter as 2000 and it still behaves this way?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 14:05:12 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-08-06T14:05:12Z</dc:date>
    <item>
      <title>FeatureLayer always returns 1000 features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1086563#M74178</link>
      <description>&lt;P&gt;I have created a FeatureLayer from a sublayer of a Dynamic Layer.&amp;nbsp; Queries to the FeatureLayer will only return 1,000 features at once.&amp;nbsp; I've used the num and start properties of the Query object to page results in the past, however, both the Dynamic Layer and the sublayer have the Max Record Count property set to 5,000 on the server.&amp;nbsp; So, I'd like to be able to take advantage of that.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2021-08-06_9-34-05.png" style="width: 259px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20359i69BF3DD625853941/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2021-08-06_9-34-05.png" alt="2021-08-06_9-34-05.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2021-08-06_9-48-05.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20357i9581A8E81E6B9536/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2021-08-06_9-48-05.png" alt="2021-08-06_9-48-05.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2021-08-06_8-52-53.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20362i27EF39F6D07ABC13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2021-08-06_8-52-53.png" alt="2021-08-06_8-52-53.png" /&gt;&lt;/span&gt;When I observe my instance of the FeatureLayer in Developer Tools at runtime, it says the maxRecordCount is 1,000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why the FeatureLayer continues to default to 1,000?&amp;nbsp; I've referenced other posts here that all suggest setting the MaxRecordCount is the fix.&amp;nbsp; However, to my knowledge, the GIS folks have set this property as suggested.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 14:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1086563#M74178</guid>
      <dc:creator>AndyWhitaker1</dc:creator>
      <dc:date>2021-08-06T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer always returns 1000 features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1086586#M74181</link>
      <description>&lt;P&gt;I have seen this behavior as well. Are you explicitly stating the "resultRecordCount" parameter as 2000 and it still behaves this way?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 14:05:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1086586#M74181</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-08-06T14:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer always returns 1000 features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1086594#M74182</link>
      <description>&lt;P data-unlink="true"&gt;Thanks, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;.&amp;nbsp; When working with the Query class in the JavaScript API, I believe we set the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/query-amd.html#num" target="_self"&gt;num&lt;/A&gt;&amp;nbsp;property and the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/query-amd.html#start" target="_self"&gt;start&lt;/A&gt; property.&amp;nbsp; These should be analagous to resultRecordCount and resultOffset parameters in the REST API, which I can see in the Query action for the FeatureLayer in the ArcGIS REST Services Directory.&lt;/P&gt;&lt;P data-unlink="true"&gt;Funny thing, is that it works as expected when doing the query in the ArcGIS REST Services Directory, just not when coming from the client in JavaScript working with &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/query-amd.html" target="_blank" rel="noopener"&gt;Query&lt;/A&gt; and making a call to the FeatureLayer's &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#queryfeatures" target="_blank" rel="noopener"&gt;queryFeatures&lt;/A&gt; function.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 14:21:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1086594#M74182</guid>
      <dc:creator>AndyWhitaker1</dc:creator>
      <dc:date>2021-08-06T14:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer always returns 1000 features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1086629#M74185</link>
      <description>&lt;P&gt;I thought that this depended on what the REST service is setup to allow, and it defaults to 1000.&amp;nbsp; So if it's your service and you have access to ArcGIS Manager you can allow more, but if not you are only able to ever get up to the 1000 limit.&amp;nbsp; I have written code in the past to consume some one else's service that was limited to 1000 features, but I had to pull it in in groups, or hope that you can write a where clause for the query that comes in under 1000.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 15:38:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1086629#M74185</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2021-08-06T15:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer always returns 1000 features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1087074#M74206</link>
      <description>&lt;P&gt;The REST service limits it to 1000 features, regardless of what the Max Record Count is. I typically get around this by querying for the ObjectIDs for the parameters that I want. This will give you an array of ObjectIDs for all the features you want, even if it's over 1000. Then, I divide the results into chunks of 1000 and make a query to fetch features based on their ObjectID.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 13:27:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1087074#M74206</guid>
      <dc:creator>CourtneyMenikheim</dc:creator>
      <dc:date>2021-08-09T13:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer always returns 1000 features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1087075#M74207</link>
      <description>&lt;P&gt;Be careful though - if your browser submits too many queries at once, you'll run into some issues. If there are several chunks of 1000, you may need to write some code to wait for a batch to finish before running the next one.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 13:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-always-returns-1000-features/m-p/1087075#M74207</guid>
      <dc:creator>CourtneyMenikheim</dc:creator>
      <dc:date>2021-08-09T13:27:49Z</dc:date>
    </item>
  </channel>
</rss>

