Bug
| Bug ID Number | BUG-000118425 |
|---|---|
| Submitted | November 28, 2018 |
| Last Modified | May 26, 2026 |
| Applies to | ArcGIS GIS Server |
| Version found | 10.4.1 |
| Operating System | N/A |
| Operating System Version | N/A |
| Status | Will Not Be Addressed |
When performing a query with the goal of returning a count of features, a possible workaround is to place the following JSON in the outStatistics (Output Statistics) parameter at REST while returnCountOnly remains false:
[{
"statisticType": "count",
"onStatisticField": "ObjectID",
"outStatisticFieldName": "OIDs"
}]
This method results in the query results being returned in under 1 second.
The Javascript API should use the outStatistics parameter instead of returnCountOnly when retrieving a count of features in a layer upon adding the FeatureLayer to a map.
Bug ID: BUG-000118425
Software:
Get help from ArcGIS experts
Download the Esri Support App