<?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: Delete duplicates and keep latest record (MAX ObjectID) in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1100236#M43569</link>
    <description>&lt;P&gt;It finally worked! Thank you Felix and Jayanta&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 11:58:18 GMT</pubDate>
    <dc:creator>REDARiahi</dc:creator>
    <dc:date>2021-09-21T11:58:18Z</dc:date>
    <item>
      <title>Delete duplicates and keep latest record (MAX ObjectID)</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1093087#M43537</link>
      <description>&lt;P&gt;I have a dataset with daily COVID-19 data for the countries of the Americas since the beginning of the pandemic. I have many duplicated records (same ISO3_CODE and Report_Date) and I want to keep the most recent record for each. Ideally, I would like to this with ModelBuilder, if possible.&lt;/P&gt;&lt;P&gt;I tried DELETE IDENTICAL tool, but unfortunately it keeps the first duplicate and deletes the others. I want the exact opposite: Keep the last duplicate (MAX Object ID) and delete the previous ones.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 13:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1093087#M43537</guid>
      <dc:creator>REDARiahi</dc:creator>
      <dc:date>2021-08-27T13:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicates and keep latest record (MAX ObjectID)</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1093098#M43538</link>
      <description>&lt;P&gt;First, you could &lt;STRONG&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/sort.htm" target="_self"&gt;Sort&lt;/A&gt; &lt;/STRONG&gt;by ObjectID field in &lt;STRONG&gt;descending&lt;/STRONG&gt;. Then try doing a &lt;STRONG&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/delete-identical.htm" target="_self"&gt;Delete Identical&lt;/A&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;You could add them in a Model Builder, and create a model.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 14:03:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1093098#M43538</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-08-27T14:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicates and keep latest record (MAX ObjectID)</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1093197#M43539</link>
      <description>&lt;P&gt;Unfortunately, that didn't work. It still keeps the lowest (MIN) ObjectID.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 16:45:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1093197#M43539</guid>
      <dc:creator>REDARiahi</dc:creator>
      <dc:date>2021-08-27T16:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicates and keep latest record (MAX ObjectID)</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1093249#M43541</link>
      <description>&lt;P&gt;I hope you have used the &lt;STRONG&gt;Sort&lt;/STRONG&gt; Geoprocessing tool.&lt;/P&gt;&lt;P&gt;After sorting the features in descending order of ObjectID, the latest feature should be having the lowest ObjectID in the newly created feature class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was my idea.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 19:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1093249#M43541</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-08-27T19:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicates and keep latest record (MAX ObjectID)</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1094507#M43549</link>
      <description>&lt;P&gt;Thanks for tip.&lt;/P&gt;&lt;P&gt;However, I'm still having issue deleting the duplicates.&amp;nbsp;&lt;BR /&gt;SORT can't use ObjectID as sorting field. I had to ADD FIELD (ObjID), then assign it ObjectID value. After that, I was able to SORT using ObjID. However, when using DELETE IDENTICAL on the sorted feature layer, it deletes the rows from the sorted table, not the feature layer itself...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an efficient way to apply the sorting to the original feature layer?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 16:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1094507#M43549</guid>
      <dc:creator>REDARiahi</dc:creator>
      <dc:date>2021-09-01T16:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicates and keep latest record (MAX ObjectID)</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1097457#M43560</link>
      <description>&lt;P&gt;Join it back to original. Delete records that don't match.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Sep 2021 02:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1097457#M43560</guid>
      <dc:creator>FelixPertziger</dc:creator>
      <dc:date>2021-09-12T02:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicates and keep latest record (MAX ObjectID)</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1100236#M43569</link>
      <description>&lt;P&gt;It finally worked! Thank you Felix and Jayanta&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 11:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-duplicates-and-keep-latest-record-max/m-p/1100236#M43569</guid>
      <dc:creator>REDARiahi</dc:creator>
      <dc:date>2021-09-21T11:58:18Z</dc:date>
    </item>
  </channel>
</rss>

