| Bug ID Number |
BUG-000133851 |
| Submitted | September 15, 2020 |
| Last Modified | December 16, 2025 |
| Applies to | ArcGIS GIS Server |
| Version found | 10.7.1 |
| Operating System | Windows OS |
| Operating System Version | N/A |
| Status | As Designed
After review by the development team, it has been determined that this behavior is as designed. See the Additional Information section for details.
|
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