SOAP query results that are formatted with esriQueryResultRecordSetAsObject show all ObjectId values as -1 when the data source is a (SQL Server or Oracle) Query Layer within a Map Service.
Last Published: August 25, 2014ArcGIS for Server
Bug ID Number
NIM085988
Submitted
October 25, 2012
Last Modified
June 5, 2024
Applies to
ArcGIS for Server
Version found
10.1
Version Fixed
10.2
Status
Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
Workaround
Adding an Identity field to SQL Server based query layers than specifing that field, as the object id field, will resolve the problem.No workaround currently exists for Oracle based query layers.