English

How To: Update the maximum record count for feature services in ArcGIS Online

Summary

The maxRecordCount property is used to define how many features can be accessed when querying data in a hosted feature service, or when creating a local copy of a hosted feature service for use with ArcMap. The default maxRecordCount value is 1000.

A feature service's maximum number of records in the REST endpoint can be changed by increasing the maxRecordCount value.

Note:
The number of features displayed in a web map is no longer determined by the maxRecordCount. This article describes how to increase maxRecordCount for querying from REST or for creating a local copy of a service in ArcMap.

The instructions provided describe how to update or change the maximum number of records of feature services in the REST endpoint in ArcGIS Online.

Note:
It may be necessary to visit each layer to update the parameter if there are multiple layers in the service.

Procedure

Ensure the feature service is not shared publicly with everyone before using this workflow.

  1. Log in to www.arcgis.com with administrator credentials.
  2. Click My Content, and navigate to the intended feature service. Open the feature service.
Note:
If the error "There are no services available" is returned when visiting the ArcGIS REST Administrator Directory, the hosted feature service is shared with 'Everyone' (public).
  1. On the item details page of the feature service, under Layers, select the desired feature layer.
An image showing the sublayers on the feature service item details page.
  1. On the right side of the feature layer's details page, under URL, click the Copy icon to copy the service URL, and paste it in a browser's address bar.
A screenshot image showing the service URL to be copied.
  1. Modify the URL to the one displayed below:
    • Insert "admin" between "rest" and "services".
    • Please note that the number at the end of the URL may or may not be a zero.
https://services.arcgis.com/xxxx/arcgis/rest/admin/services/Layername/FeatureServer/0
  1. Press Enter to access the new page.
  2. Scroll to the bottom of the page, and click Update Definition.
  3. Change the value of the lastEditDate key to null.
Image of set lastEditDate to null
  1. Search for the maxRecordCount parameter (Press Ctrl+F and search for maxRecordCount). Change the value to the desired number of records.
Image of Update maxRecordCount
  1. Click Update Layer Definition.

In this example, a maximum of 2000 features can now be returned when querying from REST or when creating a local copy of the service in ArcMap.

Related Information

Last Published: 10/8/2020

Article ID: 000012383

Software: ArcGIS Online 8.2