AnsweredAssumed Answered

ArcGIS Server Layers Endpoint returns -1 for MaxRecordCount

Question asked by phunter_Latitudegeo on Apr 30, 2018

I have a ArcGIS Table being served from ArcGIS Online that's reporting a MaxRecordCount of -1 when retrieving the service/layer information through the Layers REST Endpoint. If the layer description is fetched directly from the layer endpoint the appropriate result of 2000 is returned as expected. Likewise with the Service Definition. 

 

A bug in the API perhaps?

 

MaxRecordCount = -1

https://services.arcgis.com/p3UBboyC0NH1uCie/ArcGIS/rest/services/BC_CityCensus/FeatureServer/layers?f=pjson 

 

vs 

MaxRecordCount = 2000 

https://services.arcgis.com/p3UBboyC0NH1uCie/ArcGIS/rest/services/BC_CityCensus/FeatureServer/0?f=pjson 

 

Edit: The original post contained the wrong Hyperlink for layers endpoint. This has been updated. 

Outcomes