<?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: When applying CopyFeature the OBJECTID Field changes. in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-applying-copyfeature-the-objectid-field/m-p/1373911#M11030</link>
    <description>&lt;P&gt;I believe this is expected behavior. ObjectID columns are columns that are managed by Esri and we typically don't have much control over them. It's typically not recommended to use them for reasons like this.&lt;/P&gt;&lt;P&gt;With that being said, the Copy tool (not Copy Features) should maintain the ObjectIDs.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 15:34:30 GMT</pubDate>
    <dc:creator>RyanUthoff</dc:creator>
    <dc:date>2024-01-24T15:34:30Z</dc:date>
    <item>
      <title>When applying CopyFeature the OBJECTID Field changes.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-applying-copyfeature-the-objectid-field/m-p/1373893#M11029</link>
      <description>&lt;P&gt;I have a table that I am loading in from an enterprise oracle database, as a Feature Layer.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table view of feature layer" style="width: 294px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92632iB55C8B6CBEB1F7C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="One.png" alt="Table view of feature layer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Table view of feature layer&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;But after I apply the CopyFeature Tool to the table to create a local version&amp;nbsp; of the table, the UNIQ_ID field (type OBJECTID) is overwritten to new values.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table view of copied feature layer" style="width: 367px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92633i501B4ACFCBA23142/image-size/large?v=v2&amp;amp;px=999" role="button" title="Two.png" alt="Table view of copied feature layer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Table view of copied feature layer&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;Is there some flag or step I am missing to prevent the values from being changed like this?&lt;BR /&gt;I have resorted to witting custom code to compare each row with the oracle table to find the value but this is painfully inefficient.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 14:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-applying-copyfeature-the-objectid-field/m-p/1373893#M11029</guid>
      <dc:creator>TrentSchweitzer</dc:creator>
      <dc:date>2024-01-24T14:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: When applying CopyFeature the OBJECTID Field changes.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-applying-copyfeature-the-objectid-field/m-p/1373911#M11030</link>
      <description>&lt;P&gt;I believe this is expected behavior. ObjectID columns are columns that are managed by Esri and we typically don't have much control over them. It's typically not recommended to use them for reasons like this.&lt;/P&gt;&lt;P&gt;With that being said, the Copy tool (not Copy Features) should maintain the ObjectIDs.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 15:34:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-applying-copyfeature-the-objectid-field/m-p/1373911#M11030</guid>
      <dc:creator>RyanUthoff</dc:creator>
      <dc:date>2024-01-24T15:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: When applying CopyFeature the OBJECTID Field changes.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-applying-copyfeature-the-objectid-field/m-p/1375029#M11038</link>
      <description>&lt;P&gt;Thank you for the suggestion of using the Copy tool. Doing this at least made a stand alone copy of the Feature Class. I was then able to use the&amp;nbsp;&lt;STRONG&gt;Make XY Event Layer&amp;nbsp;&lt;/STRONG&gt;tool to make the stand alone table a feature layer. This preserved the ObjectID values.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 19:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-applying-copyfeature-the-objectid-field/m-p/1375029#M11038</guid>
      <dc:creator>TrentSchweitzer</dc:creator>
      <dc:date>2024-01-26T19:30:00Z</dc:date>
    </item>
  </channel>
</rss>

