<?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>idea Reset ObjectID when truncating table in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/reset-objectid-when-truncating-table/idi-p/1302177</link>
    <description>&lt;P&gt;When using the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/truncatetable.htm" target="_self"&gt;Truncate Table&lt;/A&gt; geoprocessing tool:&lt;/P&gt;&lt;P&gt;It would be helpful if we had the option to reset the ObjectID sequence, so that new rows start at ObjectID 1, etc.&lt;/P&gt;&lt;P&gt;Use Case:&lt;BR /&gt;We have large tables that we clear and reload on a schedule. We don't want to deal with huge ObjectIDs over time. And we don't want to delete the table and recreate it. Resetting the ObjectID would solve this issue.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Oracle 18c 10.7.1 EGDB&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2023 18:58:41 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-06-22T18:58:41Z</dc:date>
    <item>
      <title>Reset ObjectID when truncating table</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/reset-objectid-when-truncating-table/idi-p/1302177</link>
      <description>&lt;P&gt;When using the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/truncatetable.htm" target="_self"&gt;Truncate Table&lt;/A&gt; geoprocessing tool:&lt;/P&gt;&lt;P&gt;It would be helpful if we had the option to reset the ObjectID sequence, so that new rows start at ObjectID 1, etc.&lt;/P&gt;&lt;P&gt;Use Case:&lt;BR /&gt;We have large tables that we clear and reload on a schedule. We don't want to deal with huge ObjectIDs over time. And we don't want to delete the table and recreate it. Resetting the ObjectID would solve this issue.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Oracle 18c 10.7.1 EGDB&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 18:58:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/reset-objectid-when-truncating-table/idi-p/1302177</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-06-22T18:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reset ObjectID when truncating table</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/reset-objectid-when-truncating-table/idc-p/1302234#M25493</link>
      <description>&lt;P&gt;Bud:&lt;/P&gt;&lt;P&gt;When I use the Truncate Table tool it resets the OBJECTID back to 1 for me so when I append records they start at 1.&amp;nbsp; I used to use the Delete Rows method which did not reset the OBJECTID and that caused problems over time.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 20:45:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/reset-objectid-when-truncating-table/idc-p/1302234#M25493</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2023-06-22T20:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reset ObjectID when truncating table</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/reset-objectid-when-truncating-table/idc-p/1302238#M25494</link>
      <description>&lt;P&gt;you can truncate the table with SQL as long as it is not registered as versioned ( traditional / branch ).&lt;/P&gt;&lt;PRE&gt;truncate table table_A;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/TRUNCATE-TABLE.html#GUID-B76E5846-75B5-4876-98EC-439E15E4D8A4" target="_blank" rel="noopener"&gt;https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/TRUNCATE-TABLE.html#GUID-B76E5846-75B5-4876-98EC-439E15E4D8A4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then after the table is truncated, you can use SQL to reset the sequence.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;alter&lt;/SPAN&gt; sequence serial restart &lt;SPAN class=""&gt;start&lt;/SPAN&gt; &lt;SPAN class=""&gt;with&lt;/SPAN&gt; &lt;SPAN class=""&gt;1&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/ALTER-SEQUENCE.html#GUID-A6468B63-E7C9-4EF0-B048-82FE2449B26D" target="_blank" rel="noopener"&gt;SQL Language Reference (oracle.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarceloMarques_0-1687467467837.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73978i8C3E934F35257711/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarceloMarques_0-1687467467837.png" alt="MarceloMarques_0-1687467467837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarceloMarques_1-1687467609699.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73979iAAE273B710CF9B1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarceloMarques_1-1687467609699.png" alt="MarceloMarques_1-1687467609699.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarceloMarques_2-1687467645603.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73980iA4E94AD08A3B6D11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarceloMarques_2-1687467645603.png" alt="MarceloMarques_2-1687467645603.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarceloMarques_3-1687467755549.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73981iB810D2CD242EEFF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarceloMarques_3-1687467755549.png" alt="MarceloMarques_3-1687467755549.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 23:16:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/reset-objectid-when-truncating-table/idc-p/1302238#M25494</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-06-24T23:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reset ObjectID when truncating table - Status changed to: Closed</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/reset-objectid-when-truncating-table/idc-p/1302554#M25498</link>
      <description>&lt;P&gt;Aftenoon&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Could you let me know what version of Pro you are using so I can try to reproduce in your same environment?&lt;/P&gt;&lt;P&gt;The Truncate GP tool does reset your Object IDs after running.&amp;nbsp; This is how it is designed to work. If this is not the behavior you're seeing, it means that the specific workflow being executed is exposing a bug.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since this is a bug and not and Idea, I'm going to close this thread. Please make sure to file a bug for this that contains your specific workflow so that we can figure out what's going on and get a fix.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 17:32:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/reset-objectid-when-truncating-table/idc-p/1302554#M25498</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2023-06-23T17:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reset ObjectID when truncating table</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/reset-objectid-when-truncating-table/idc-p/1303215#M25510</link>
      <description>&lt;P&gt;Indeed. I tested with Pro 3.1.2 just to make sure, and the "Truncate Table" GP tool does reset the "Sequence" back to "1". See screenshots below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarceloMarques_0-1687820075887.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74214iE26D602F67028DF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarceloMarques_0-1687820075887.png" alt="MarceloMarques_0-1687820075887.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarceloMarques_1-1687820212433.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74215iFDBE857267600D1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarceloMarques_1-1687820212433.png" alt="MarceloMarques_1-1687820212433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarceloMarques_2-1687820431518.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74216i71B614E9CF60C13B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarceloMarques_2-1687820431518.png" alt="MarceloMarques_2-1687820431518.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarceloMarques_3-1687820554448.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74218i3C8A92772BFB2BAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarceloMarques_3-1687820554448.png" alt="MarceloMarques_3-1687820554448.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarceloMarques_5-1687820637630.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74220i328FE385D8674EA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarceloMarques_5-1687820637630.png" alt="MarceloMarques_5-1687820637630.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 23:05:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/reset-objectid-when-truncating-table/idc-p/1303215#M25510</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-06-26T23:05:35Z</dc:date>
    </item>
  </channel>
</rss>

