<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Feature Service - Table does not have an OID Field error in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-table-does-not-have-an-oid-field/m-p/423318#M16365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;A href="https://community.esri.com/migrated-users/404163"&gt;Jon Kwong&lt;/A&gt;‌. Did you solve this problem?&lt;/P&gt;&lt;P&gt;I am having the same issue here with ArcGIS Server 10.7.1. My database is Oracle 11g and the field been used as ID in the view has been cast from number(12) to number(10), which ArcMap recognizes as Long Integer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2020 19:59:17 GMT</pubDate>
    <dc:creator>Thiago_Nascimento</dc:creator>
    <dc:date>2020-05-21T19:59:17Z</dc:date>
    <item>
      <title>Feature Service - Table does not have an OID Field error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-table-does-not-have-an-oid-field/m-p/423317#M16364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I published a feature service from a view table in PostgreSQL to a standalone ArcGIS Server. I was able to view the feature layer in ArcGIS Online and was able query using the where clause.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I open the attribute table, I get strange behaviours.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The feature count is wrong. The source layer has 914 features, but the attribute table shows 2,000.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I select a row and click Center on Selection, nothing happened.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="feature count" class="jive-emoji jive-image image-2 j-img-original" src="/legacyfs/online/476901_Feature count.jpg" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I checked the log file in ArcGIS Server Manager and saw this "Error: The table does not have an OID Field".&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Log file" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/476900_Log error.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to query at the REST endpoint using the Object ID, or return ID only or return count only, I get a "Unable to complete operation" error. The same&amp;nbsp;&lt;SPAN&gt;"Error: The table does not have an OID Field" error appeared in the log file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Query objectid" class="jive-emoji jive-image image-3 j-img-original" src="/legacyfs/online/476902_Query Object ID.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have confirmed the feature layer has an ObjectID.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ObjectID" class="jive-emoji jive-image image-4 j-img-original" src="https://community.esri.com/legacyfs/online/476903_ObjectID.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What did I miss?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2019 01:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-table-does-not-have-an-oid-field/m-p/423317#M16364</guid>
      <dc:creator>JonKwong</dc:creator>
      <dc:date>2019-12-26T01:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Service - Table does not have an OID Field error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-table-does-not-have-an-oid-field/m-p/423318#M16365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;A href="https://community.esri.com/migrated-users/404163"&gt;Jon Kwong&lt;/A&gt;‌. Did you solve this problem?&lt;/P&gt;&lt;P&gt;I am having the same issue here with ArcGIS Server 10.7.1. My database is Oracle 11g and the field been used as ID in the view has been cast from number(12) to number(10), which ArcMap recognizes as Long Integer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 19:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-table-does-not-have-an-oid-field/m-p/423318#M16365</guid>
      <dc:creator>Thiago_Nascimento</dc:creator>
      <dc:date>2020-05-21T19:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Service - Table does not have an OID Field error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-table-does-not-have-an-oid-field/m-p/423319#M16366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't really solve it. I realise that I do not need editing in my workflow. I just need a read-only feature layer. So, instead of the publishing the query layer as a feature service, I just publish it as a map service and use the feature layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2020 13:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-table-does-not-have-an-oid-field/m-p/423319#M16366</guid>
      <dc:creator>JonKwong</dc:creator>
      <dc:date>2020-05-24T13:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Service - Table does not have an OID Field error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-table-does-not-have-an-oid-field/m-p/423320#M16367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/376014"&gt;Thiago dos Santos Nascimento&lt;/A&gt;‌&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;... the field been used as ID in the view has been cast from number(12) to number(10), which ArcMap recognizes as Long Integer.&lt;/BLOCKQUOTE&gt;&lt;P&gt;On the above issue where your ID field gets recognized has a long integer instead of an objectid field, please read the following help - this might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an excerpt from &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/data/query-layers/choose-unique-identifier.htm" title="https://pro.arcgis.com/en/pro-app/help/data/query-layers/choose-unique-identifier.htm"&gt;Choose a unique identifier field—Query layers | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;To be used as a unique identifier in ArcGIS, a field must be not null, contain unique values, and be one of the following data types:&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a ArcGIS Pro help, but the same concept applied in ArcMap too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 21:37:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-table-does-not-have-an-oid-field/m-p/423320#M16367</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2020-05-27T21:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Service - Table does not have an OID Field error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-table-does-not-have-an-oid-field/m-p/423321#M16368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3685"&gt;Tanu Hoque&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In every attempt bellow, I made it sure that the field in question was&amp;nbsp;&lt;STRONG&gt;not null&lt;/STRONG&gt; and contained only &lt;STRONG&gt;unique values&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I only had success when the field used as objectid was a column of type &lt;STRONG&gt;NUMBER(10)&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A&amp;nbsp;column of type&amp;nbsp;&lt;STRONG&gt;NUMBER(12)&lt;/STRONG&gt;, is not accepted as valid field for objectid. I had to try this because the legacy table I will work with uses this type originally.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;With a column of type &lt;STRONG&gt;VARCHAR2&lt;/STRONG&gt;,&amp;nbsp;the published Feature Service is not usable:in ArcMap, the service does not draw any features at all and the layer's attribute table appears empty as well.&lt;UL&gt;&lt;LI&gt;at the Server Log it says: &lt;SPAN style="color: #ff0000;"&gt;"Error: Attribute column not found[ORA-00904: "ESRI_OID": invalid identifier]."&lt;/SPAN&gt;.&lt;/LI&gt;&lt;LI&gt;Notice that this field is added automatically by ArcGIS and the error persists even when I disable it before publishing.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I also tried with columns of the types&amp;nbsp;&lt;STRONG&gt;NUMBER(38)&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;INTEGER&lt;/STRONG&gt;. At first, they are accepted as valid columns, but the service displays strange behaviors:&lt;UL&gt;&lt;LI&gt;in ArcMap, when selecting features, they are highlighted only at the attribute table, not in the map. Additionally, when I switch the option to show only the selected records in the attribute table, it shows none.&lt;/LI&gt;&lt;LI&gt;at the Server Log it says: &lt;SPAN style="color: #ff0000; font-family: helvetica, arial, sans-serif;"&gt;"Error: The table does not have an OID Field."&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I did not made any&amp;nbsp;attempts with the other field types (&lt;STRONG&gt;GUID&lt;/STRONG&gt; and &lt;STRONG&gt;Date&lt;/STRONG&gt;) as the table I have to work with does not use them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;All columns of &lt;STRONG&gt;NUMBER&lt;/STRONG&gt; and &lt;STRONG&gt;INTEGER&lt;/STRONG&gt; are recognized as &lt;STRONG&gt;Long Integer&lt;/STRONG&gt; by ArcMap.&lt;/LI&gt;&lt;LI&gt;I am using Oracle 11.2.0.4.0, ArcGIS Server 10.7.1 and&amp;nbsp;ArcGIS Desktop 10.8.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 20:44:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/feature-service-table-does-not-have-an-oid-field/m-p/423321#M16368</guid>
      <dc:creator>Thiago_Nascimento</dc:creator>
      <dc:date>2020-06-01T20:44:25Z</dc:date>
    </item>
  </channel>
</rss>

