I designed a survey for individuals to inspect insect traps. Each trap will be reinspected on a 21-day cycle. Currently, there are over 1,200 such traps and will likely be more as the season progresses. However, when they go to the inbox on the survey and refresh, only 1,000 records are populated. I know there is a way to filter the list to limit the number of records, but is there a way to increase the apparent limit from 1,000? (Ultimately, they use the map filter when in the field, but need all of the trap locations to refresh.)
Thanks.
Solved! Go to Solution.
Hi Todd,
The 1,000 limit is actually set on the feature layer, this is the default setting when you create a new feature service. You need to modify the max record count of the feature layer if you want to be able to query more than 1,000 records at one time.
Phil.
Hi Todd,
The 1,000 limit is actually set on the feature layer, this is the default setting when you create a new feature service. You need to modify the max record count of the feature layer if you want to be able to query more than 1,000 records at one time.
Phil.
Excellent. Thank you.
Thanks again for your reply.
I have gone to the following page:
How To: Update the maximum record count for feature services in ArcGIS Online
However, this is for ArcGIS Online and we are using our own Portal. When I go to Update Definition, I only get an input box rather than the full layer definition.
So, using the examples here: Update Definition (Feature Layer)—ArcGIS REST API: Services Directory | ArcGIS for Developers, I tried the following: { "MaxRecordCount" : 5000 } I receive the following error message:
{ "error": { "code": 500, "message": "Field 'MaxRecordCount' cannot be updated.", "details": [] } }
Any suggestions?
Hi Todd,
I am not sure about that error and how to update MaxRecrodCount another wayon Portal if it is not letting you do it via the update definition rest endpoint.
It may be a better idea to ask this question directly in the Portal for ArcGIS GeoNet forum, as it is related directly to Portal and feature services, and not Surey123: https://community.esri.com/community/gis/web-gis/portal-for-arcgis/content
Phil.
Hi Todd
Did you ever get a resolution on this? I am hitting the same road blocks.
Cheers
Chris
Hi Chris,
I did. And it was convoluted and honestly don't recall how I eventually figured it out. Nonetheless, I had to do it again, struggled through it by memory, and finally wised up and wrote down my steps. These notes were written for one person in mind (myself), but perhaps they will help you, too. I have removed the service URLs (and if you use a different port, you will need to update that, too, of course), but these are otherwise my notes verbatim:
1. Go here: https://[server url]:6443/arcgis/admin/
2. Generate token for https://[hosted layer url]
3. Go to https://[server url]:6443/arcgis/admin/ and login with generated token
4. Once logged in, go to services
5. Click the correct service
6. Enter the following URL: https://[hosted layer url]/edit
7. Change "maxRecordCount": 1000, to another value, e.g. "maxRecordCount": 5000,
8. Save the edits
Side note: for step one, you may be able to go directly to https://[server url]/portal/sharing/rest/generateToken to generate the token.
Hopefully, my notes will be of use to you.
Todd
Thanks for the info Todd
Much appreciated
This is what I did and it was successful:
Logged into my Enterprise Portal as the owner of the hosted feature service, which is also an administrator login
Found my hosted feature service
Clicked on the View button at the bottom right, to take me to the Rest end point for the service
Added Admin into the address path:
https://YOUR PORTAL URL/server/admin/services/Hosted/NAME OF YOUR SERVICE/FeatureServer
scroll to the bottom and click on Update Definition
Type the following into the box:
{
"maxRecordCount": 5000
}
Then click on UpdateDefinition
If it succeeds, you should get the following message: