How to cast integer to esriFieldTypeOID in Oracle view?

02-11-2015 03:50 AM
Occasional Contributor

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?

0 Kudos
0 Replies