laptop and a wrench

Bug

Failed to execute a query by ObjectId after creating a query layer on a view feature class.

Last Published: September 28, 2020 ArcGIS GIS Server
Bug ID Number BUG-000133851
SubmittedSeptember 15, 2020
Last ModifiedDecember 16, 2025
Applies toArcGIS GIS Server
Version found10.7.1
Operating SystemWindows OS
Operating System VersionN/A
StatusAs Designed

Additional Information

ESRI_OID in a query layer is a virtual field. Therefore querying against ESRI_OID field is not allowed. Starting ArcGIS Enterprise 11.4, map service returns uniqueIdInfo element in a query layers REST resources when the object-id field is virtual. Look for uniqueIdInfo.OIDFieldContainsHashValue. If the value is true, don't use the object-id field as it is most likely named ESRI_OID in this case in a query input. Instead use fields from uniqueIdInfo.fields property. If the need to get or send unique-ids arises, use returnUniqueIds or uniqueIds parameters.

Workaround

Publish the map service as a copy from ArcGIS Pro.

Steps to Reproduce

Bug ID: BUG-000133851

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