I have created a new ArcGIS service and it has one geometry feature and one table. Now I'm trying to query the data using the same code that all the other services use. I get "The field already exists." error on ServiceFeatureTable.OpenAsync(uri).
I'm suspecting that this is caused by the fact that the service's table is in fact an Oracle View and it has an ObjectID field of type integer.
Is there a way to convert the integer to the required type esriFieldTypeOID or do something else to fix the error?