<?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: queryTask &amp;amp; max records returned? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-amp-amp-max-records-returned/m-p/115699#M10792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This may be related to the Maximum Record Count setting on the service. Is this your own service you have access to? If so, you can change it in the service configuration file, should be in the server folder in program directory, i.e in server 9:&lt;BR /&gt;C:\Program Files\ArcGIS\server\user\cfg\myService.cfg&lt;BR /&gt;Look for this tag in the .cfg file and update it, then save and restart the ArcGIS Server Object Manager service&lt;BR /&gt;&amp;lt;MaxRecordCount&amp;gt;1000&amp;lt;/MaxRecordCount&amp;gt;&lt;BR /&gt;If you're using AGS Server 10, the above file will be in the 'Server10.0' directory, vs 'server' folder. Also, in Server 10 this option is now available via service properties in ArcCatalog, go to the properties of the service, then the 'Parameters' tab, then set 'Maximum Number of records returned by Server' to whatever you need and restart.&lt;BR /&gt;&lt;BR /&gt;I think the default is 500, if yours is not showing 1000 here then maybe some other issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;More info on service config files:&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/0093000000mr000000.htm"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/0093000000mr000000.htm&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the help!!! That worked!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2011 20:03:22 GMT</pubDate>
    <dc:creator>DerekLoi</dc:creator>
    <dc:date>2011-03-17T20:03:22Z</dc:date>
    <item>
      <title>queryTask &amp;amp; max records returned?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-amp-amp-max-records-returned/m-p/115696#M10789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;does anyone know if the queryTask class only returns a set max number of records of 1000?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have checked the where clause and the feature's data and it all looks fine.&amp;nbsp; I tried a different where clause to pull only a couple hundred rows and that worked fine.&amp;nbsp; It just seems to only return max of 1000 records when i'm trying to query for 1500+ records.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 19:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-amp-amp-max-records-returned/m-p/115696#M10789</guid>
      <dc:creator>DerekLoi</dc:creator>
      <dc:date>2011-03-16T19:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: queryTask &amp; max records returned?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-amp-amp-max-records-returned/m-p/115697#M10790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i tried this code and it returned the correct record count which is 1572&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
queryTask.executeForCount(query,function(count){
 alert(count + " features matched the input query");
},function(error){
 console.log(error);
});
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but after running the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
queryTask.execute(query,showResults);

function showResults(results) {
 alert(results.features.length);
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;... the results.features.length is alway 1000 ... should be 1572&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;am I missing something here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:49:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-amp-amp-max-records-returned/m-p/115697#M10790</guid>
      <dc:creator>DerekLoi</dc:creator>
      <dc:date>2021-12-11T06:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: queryTask &amp; max records returned?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-amp-amp-max-records-returned/m-p/115698#M10791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This may be related to the Maximum Record Count setting on the service. Is this your own service you have access to? If so, you can change it in the service configuration file, should be in the server folder in program directory, i.e in server 9:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files\ArcGIS\server\user\cfg\myService.cfg&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Look for this tag in the .cfg file and update it, then save and restart the ArcGIS Server Object Manager service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;MaxRecordCount&amp;gt;1000&amp;lt;/MaxRecordCount&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're using AGS Server 10, the above file will be in the 'Server10.0' directory, vs 'server' folder. Also, in Server 10 this option is now available via service properties in ArcCatalog, go to the properties of the service, then the 'Parameters' tab, then set 'Maximum Number of records returned by Server' to whatever you need and restart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the default is 500, if yours is not showing 1000 here then maybe some other issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More info on service config files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/0093000000mr000000.htm"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/0093000000mr000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 14:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-amp-amp-max-records-returned/m-p/115698#M10791</guid>
      <dc:creator>RobWaller</dc:creator>
      <dc:date>2011-03-17T14:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: queryTask &amp; max records returned?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-amp-amp-max-records-returned/m-p/115699#M10792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This may be related to the Maximum Record Count setting on the service. Is this your own service you have access to? If so, you can change it in the service configuration file, should be in the server folder in program directory, i.e in server 9:&lt;BR /&gt;C:\Program Files\ArcGIS\server\user\cfg\myService.cfg&lt;BR /&gt;Look for this tag in the .cfg file and update it, then save and restart the ArcGIS Server Object Manager service&lt;BR /&gt;&amp;lt;MaxRecordCount&amp;gt;1000&amp;lt;/MaxRecordCount&amp;gt;&lt;BR /&gt;If you're using AGS Server 10, the above file will be in the 'Server10.0' directory, vs 'server' folder. Also, in Server 10 this option is now available via service properties in ArcCatalog, go to the properties of the service, then the 'Parameters' tab, then set 'Maximum Number of records returned by Server' to whatever you need and restart.&lt;BR /&gt;&lt;BR /&gt;I think the default is 500, if yours is not showing 1000 here then maybe some other issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;More info on service config files:&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/0093000000mr000000.htm"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/0093000000mr000000.htm&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the help!!! That worked!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 20:03:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querytask-amp-amp-max-records-returned/m-p/115699#M10792</guid>
      <dc:creator>DerekLoi</dc:creator>
      <dc:date>2011-03-17T20:03:22Z</dc:date>
    </item>
  </channel>
</rss>

