laptop and a wrench

Bug

Query layer based on ESRI_OID as a map service is unable to perform a query for "NOT ESRI OID IS NULL" fails and returns an error, "Failed to execute query".

Last Published: March 13, 2019 ArcGIS GIS Server
Bug ID Number BUG-000119828
SubmittedFebruary 5, 2019
Last ModifiedNovember 5, 2025
Applies toArcGIS GIS Server
Version found10.6.1
Operating SystemN/A
Operating System VersionN/A
StatusAs Designed

Additional Information

ESRI_OID field is a pseudo field. Values in this field are randomly assigned for each feature. Therefore, it not recommended to use ESRI_OID field as a regular field. Starting the version 11.5, map services return uniqueIdInfo in a layer REST resources. Use the field(s) from that element in a query. Also, in this case instead objectIds or returnIdsOnly, use uniqueIds or returnUniqueIdsOnly respectively

Steps to Reproduce

Bug ID: BUG-000119828

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