<?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: Adding an attribute index using the OBJECTID field? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/adding-an-attribute-index-using-the-objectid-field/m-p/679692#M22566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem is that I have some personal geodatabases with feature classes which do not have the OBJECTID field indexed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Python I can find those fcs in my geodatabases. The next step in my script would be indexing the OBJECTID field but it won't let me. I get a '000308 : Invalid field type' error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Isn't there any other way to add the OBJECTID index programmatically? Upgrading the geodatabase to the latest version will not fix this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2013 06:08:16 GMT</pubDate>
    <dc:creator>AleydisG__Pere</dc:creator>
    <dc:date>2013-11-22T06:08:16Z</dc:date>
    <item>
      <title>Adding an attribute index using the OBJECTID field?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-an-attribute-index-using-the-objectid-field/m-p/679690#M22564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Through the Properties dialog of any (file/personal geodatabase) feature class I can add an attribute index using the OBJECTID field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when trying to do the same using the Add attribute index tool, the OBJECTID field is not listed in the dialog and it won't let me use it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything I'm doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 14:05:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-an-attribute-index-using-the-objectid-field/m-p/679690#M22564</guid>
      <dc:creator>AleydisG__Pere</dc:creator>
      <dc:date>2013-11-21T14:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an attribute index using the OBJECTID field?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-an-attribute-index-using-the-objectid-field/m-p/679691#M22565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are not doing anything wrong. The tool dialog filters out the OBJECTID field from the list of available fields because it is indexed by default.&amp;nbsp; If you wish to create a composite index using OBJECTID and another field you can use python to execute the tool. When executed via python the tool will allow you to specify this field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
arcpy.AddIndex_management("Database Connections/testDB.sde/russell.TEST.TestPoints","OBJECTID;FIELD1","compositeTest","NON_UNIQUE","NON_ASCENDING")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:38:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-an-attribute-index-using-the-objectid-field/m-p/679691#M22565</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2021-12-12T04:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an attribute index using the OBJECTID field?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-an-attribute-index-using-the-objectid-field/m-p/679692#M22566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem is that I have some personal geodatabases with feature classes which do not have the OBJECTID field indexed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Python I can find those fcs in my geodatabases. The next step in my script would be indexing the OBJECTID field but it won't let me. I get a '000308 : Invalid field type' error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Isn't there any other way to add the OBJECTID index programmatically? Upgrading the geodatabase to the latest version will not fix this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 06:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-an-attribute-index-using-the-objectid-field/m-p/679692#M22566</guid>
      <dc:creator>AleydisG__Pere</dc:creator>
      <dc:date>2013-11-22T06:08:16Z</dc:date>
    </item>
  </channel>
</rss>

