<?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: Find duplicate field values in ArcGIS using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/find-duplicate-field-values-in-arcgis-using-python/m-p/37168#M2905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Delete Identical may be a tad dramatic, if you wanted to keep the records but make the field unique.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could create an empty list of CODE values:&amp;nbsp;&amp;nbsp;&amp;nbsp; codeVal = []&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make an Update cursor to run through and examine the CODE in each record.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If that CODE is not in the list, add it and pass on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is in the list (it is already assigned), modify it. For a numeric field, you could, for example, add a round number to it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Test it against the list again, and increment as needed until it is unique.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Calculate the CODE to this new value, and add the new value to the list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;continue to the next record......&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2012 11:47:05 GMT</pubDate>
    <dc:creator>markdenil</dc:creator>
    <dc:date>2012-04-25T11:47:05Z</dc:date>
    <item>
      <title>Find duplicate field values in ArcGIS using Python</title>
      <link>https://community.esri.com/t5/python-questions/find-duplicate-field-values-in-arcgis-using-python/m-p/37166#M2903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a large feature class with million records. It has a 'CODE' field, this 'CODE' field has many duplicated value.&amp;nbsp; I need to keep only one value from it, and delete all other duplicated values.&amp;nbsp; Another words, I need to have unique field value.&amp;nbsp; No duplicated field values.&amp;nbsp; How can I do it?&amp;nbsp; Thanks so much for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 18:35:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-duplicate-field-values-in-arcgis-using-python/m-p/37166#M2903</guid>
      <dc:creator>JinMa</dc:creator>
      <dc:date>2012-04-24T18:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find duplicate field values in ArcGIS using Python</title>
      <link>https://community.esri.com/t5/python-questions/find-duplicate-field-values-in-arcgis-using-python/m-p/37167#M2904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have a large feature class with million records. It has a 'CODE' field, this 'CODE' field has many duplicated value.&amp;nbsp; I need to keep only one value from it, and delete all other duplicated values. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are two nifty tools in 10.x that with the Sort tool can solve the problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="&amp;lt;/span&amp;gt;&amp;lt;a" target="_blank"&gt;Find" rel="nofollow" target="_blank"&amp;gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/0017/001700000054000000.htm]Find&lt;/A&gt;&lt;SPAN&gt; Identical&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="&amp;lt;/span&amp;gt;&amp;lt;a" target="_blank"&gt;Delete" rel="nofollow" target="_blank"&amp;gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/0017/001700000053000000.htm]Delete&lt;/A&gt;&lt;SPAN&gt; Identical&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 18:40:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-duplicate-field-values-in-arcgis-using-python/m-p/37167#M2904</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-04-24T18:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Find duplicate field values in ArcGIS using Python</title>
      <link>https://community.esri.com/t5/python-questions/find-duplicate-field-values-in-arcgis-using-python/m-p/37168#M2905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Delete Identical may be a tad dramatic, if you wanted to keep the records but make the field unique.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could create an empty list of CODE values:&amp;nbsp;&amp;nbsp;&amp;nbsp; codeVal = []&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make an Update cursor to run through and examine the CODE in each record.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If that CODE is not in the list, add it and pass on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is in the list (it is already assigned), modify it. For a numeric field, you could, for example, add a round number to it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Test it against the list again, and increment as needed until it is unique.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Calculate the CODE to this new value, and add the new value to the list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;continue to the next record......&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 11:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-duplicate-field-values-in-arcgis-using-python/m-p/37168#M2905</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2012-04-25T11:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find duplicate field values in ArcGIS using Python</title>
      <link>https://community.esri.com/t5/python-questions/find-duplicate-field-values-in-arcgis-using-python/m-p/37169#M2906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could try a Dissolve based on the CODE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Look in ArcTools under Data Management Tools/Generalization&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 12:36:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-duplicate-field-values-in-arcgis-using-python/m-p/37169#M2906</guid>
      <dc:creator>BenHolmes</dc:creator>
      <dc:date>2012-04-26T12:36:43Z</dc:date>
    </item>
  </channel>
</rss>

