laptop and a wrench

Bug

The error message "Failed to execute query" is returned when executing a query operation on a map service table with large data and using an ESRI_OID range in the where clause.

Last Published: September 12, 2017 ArcGIS GIS Server
Bug ID Number BUG-000107168
SubmittedAugust 7, 2017
Last ModifiedNovember 23, 2025
Applies toArcGIS GIS Server
Version found10.5.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusDuplicate

Additional Information

Duplicate of BUG-000119828. The ESRI_OID field is a pseudo field with values randomly assigned to each feature, so using ESRI_OID as a regular field is not recommended. Beginning with ArcGIS Enterprise 11.5, map services return uniqueIdInfo in the layer’s REST resources; use the field(s) from this element when constructing queries. In this workflow, use uniqueIds or returnUniqueIdsOnly instead of objectIds or returnIdsOnly.

Steps to Reproduce

Bug ID: BUG-000107168

Software:

  • ArcGIS GIS Server

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options