Select to view content in your preferred language

shape file rendering issue ( The maximum number of records allowed (4000) has been exceeded.)

387
1
12-06-2023 06:48 PM
lakshmikantha
New Contributor

HI  everyone I am new to ESRI ..
I am trying to render the shape file which getting error , api to generate shape file to feature file is giving error saying that maximum number of recoded allowed (1000) has been exceeded 
coul you please help on this 


{
    "name": "request:server",
    "message": "The maximum number of records allowed (1000) has been exceeded.",
    "details": {
        "url": "https://www.arcgis.com/sharing/rest/content/features/generate",
        "requestOptions": {
            "method": "post",
            "query": {
                "filetype": "shapefile",
                "publishParameters": "{\"name\":\"cmygeodata\",\"targetSR\":{\"wkid\":102100},\"maxRecordCount\":5000,\"enforceInputFileSizeLimit\":true,\"enforceOutputJsonSizeLimit\":true,\"generalize\":true,\"maxAllowableOffset\":10,\"reducePrecision\":true,\"numberOfDigitsAfterDecimal\":0}",
                "f": "json"
            },
            "responseType": "json",
            "body": {}
        },
        "ssl": false,
        "httpStatus": 400,
        "raw": {
            "code": 400,
            "message": "The maximum number of records allowed (1000) has been exceeded.",
            "requestId": "",
            "traceId": "00000000000000000000000000000000"
        }
    }
}

 

Tags (2)
0 Kudos
1 Reply
Sage_Wall
Esri Contributor

Hi @lakshmikantha,

It looks like there is a limit for the number of features that can be generated using the service. Are you using an API Key or otherwise authenticating with the server before sending the request or are you submitting a request without any sort of authentication.  My guess is if you create and use an API key the limit will be raised.  I couldn't find any documentation to support this hypothesis however so it's simply an educated guess. There are some instructions how how to get an API key and how to set it up in our tutorials: https://developers.arcgis.com/javascript/latest/tutorials/display-a-map/#get-an-api-key and here on the services site https://developers.arcgis.com/documentation/mapping-apis-and-services/get-started/

 

0 Kudos