Select to view content in your preferred language

QueryTask and FindTask result count

961
6
10-29-2010 12:28 PM
BrentHoskisson
Frequent Contributor
It appears that QueryTask and FindTask do not honor the MaxRecordCount in the config file.  Is this correct.  I have verified 1000, cleared the REST cache, restarted the service and waited 24 hours and still only get 500 records.  Is there a property to set or is this just an ESRI limitation?
0 Kudos
6 Replies
JenniferNery
Esri Regular Contributor
Are you able to query the REST endpoint through the browser and get more than 500 records?

The service itself may have reached its limit of how many features it can return at once (the default is 500 for ArcGIS Server 9.3.1, 1000 for ArcGIS Server 10, 1000 for MapIt)... as mentioned here: http://help.arcgis.com/en/webapi/silverlight/help/creating_featurelayer.htm
0 Kudos
BrentHoskisson
Frequent Contributor
Going through the REST endpoint never gives me more than 496 results.

I am still using 9.3.1.  I didn't realize there was a hard limit for ArcGIS Server.  I just assumed it was a configuration setting.
0 Kudos
PatrickBrooke
Emerging Contributor
I had the same problem after changing this property. Restarting the service was not enough, I had to restart ArcGIS Server on the host machine as well, in the MS Windows services dialog, restart ArcGISSOM and ArcGISSOC. After that I was able to get more records.
0 Kudos
BrentHoskisson
Frequent Contributor
Thanks, that did it.
0 Kudos
DorothyMortenson
Deactivated User
Where do we change this limit?

Dorothy
0 Kudos
DominiqueBroux
Esri Frequent Contributor
This limit is configurable using the Parameters tab of the Service Properties dialog box in ArcCatalog or Manager.
0 Kudos