Select to view content in your preferred language

Only 500 records returned in query

2689
3
09-29-2010 05:19 PM
DavidElies
Deactivated User
I'm using a query to return features to a GraphicLayer.  I have already set the MaxRecordCount for the map service config file, but I never get more than 500 records.  Please help me to get more than 500 records in a single query!
Tags (2)
0 Kudos
3 Replies
Ganael_Jatteau
Emerging Contributor
If you use Arcgis Server 10, you can directly change this property by editing your service in arcgismanager.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
David,

   If you are not yet using ArcGIS Server 10 then look here.

http://forums.esri.com/Thread.asp?c=158&f=2421&t=288645&mc=3#msgid897506
0 Kudos
DavidElies
Deactivated User
Thanks for your replies.

galigeo -I'm using ArcGIS 9.3.1.

rscheiltlin - You got it!  I misread the article that your previous post pointed to.  I only restarted the map service, not the SOM.  Thanks so much for your help!  So, for others who are looking for an answer:

To change the number of records returned by a map service.  Go to the config file location; by default this is at:

C:\Program Files\ArcGIS\server\user\cfg\

open the cfg file for your service with a text editor (like Notepad); these are named by the follow pattern:

<configuration name>.<service type>.cfg

find <MaxRecordCount>500</MaxRecordCount>

Change the 500 to your desired value.

save the file.

restart the ArcGIS Server Object Manager service, (Control Panel -> Administrator Tools -> Services)

Thanks again!
0 Kudos