<?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: Finding Duplicates in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12967#M1029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;taken from: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/4021-ArcGIS-10-Pre-Release-finding-duplicates"&gt;http://forums.arcgis.com/threads/4021-ArcGIS-10-Pre-Release-finding-duplicates&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As long as you have the tables joined together so that everything is one dataset...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Calculate field, and choose the python parser and in the pre-logic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]uniqueList = []&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def isDuplicate(inValue):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if inValue in uniqueList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uniqueList.append(inValue)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then in the calculate field:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]isDuplicate(!FIELD_NAME!)[/HTML]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 14:27:59 GMT</pubDate>
    <dc:creator>StephenKruzik</dc:creator>
    <dc:date>2012-05-07T14:27:59Z</dc:date>
    <item>
      <title>Finding Duplicates</title>
      <link>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12964#M1026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey folks, I don't mean to beat a dead horse being that i have seen this discussed before, but here is my issue. I am having to merge two sets of property records, the records overlap for about 10 months worth, so i need to weed through them find the duplicate records, verify they are duplicates, and correct accordingly. I have seen code on here that will mark in a designate field all occurrences of a duplicate record with a designated string, however i have not been able to get that python script to work (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/4021-ArcGIS-10-Pre-Release-finding-duplicates"&gt;4021 ArcGIS 10 Pre Release finding duplicates&lt;/A&gt;&lt;SPAN&gt;). So in the mean time i am left using &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/31854"&gt; Knowledge base solution 31854&lt;/A&gt;&lt;SPAN&gt; which works great if my dupes came only in sets of 2. So any other ideas, or am i missing something here. And just a FYI, i am very green when it comes to Python and scripting in ArcGIS outside of Find Attribute Queries. Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 17:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12964#M1026</guid>
      <dc:creator>JasonBoothe</dc:creator>
      <dc:date>2012-05-03T17:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Duplicates</title>
      <link>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12965#M1027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you discovered &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Find Identical&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Delete Identical&lt;/SPAN&gt;&lt;SPAN&gt; in the Data Management toolbox?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 17:21:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12965#M1027</guid>
      <dc:creator>JoeFlannery</dc:creator>
      <dc:date>2012-05-03T17:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Duplicates</title>
      <link>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12966#M1028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have, unfortunately my use of it is restricted due to a licensing issue beyond my control.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 12:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12966#M1028</guid>
      <dc:creator>JasonBoothe</dc:creator>
      <dc:date>2012-05-07T12:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Duplicates</title>
      <link>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12967#M1029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;taken from: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/4021-ArcGIS-10-Pre-Release-finding-duplicates"&gt;http://forums.arcgis.com/threads/4021-ArcGIS-10-Pre-Release-finding-duplicates&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As long as you have the tables joined together so that everything is one dataset...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Calculate field, and choose the python parser and in the pre-logic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]uniqueList = []&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def isDuplicate(inValue):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if inValue in uniqueList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uniqueList.append(inValue)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then in the calculate field:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]isDuplicate(!FIELD_NAME!)[/HTML]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 14:27:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12967#M1029</guid>
      <dc:creator>StephenKruzik</dc:creator>
      <dc:date>2012-05-07T14:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Duplicates</title>
      <link>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12968#M1030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Stephen, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sort of works for what i need it to do, i'll just have to add an additional step in the process to finalize verification of the records prior to removal.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 18:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12968#M1030</guid>
      <dc:creator>JasonBoothe</dc:creator>
      <dc:date>2012-05-16T18:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Duplicates</title>
      <link>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12969#M1031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The licensing restriction is loosened a bit - if you use one attribute field at a time (except for Shape field) then Find Identical tool works on all license levels.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 20:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/finding-duplicates/m-p/12969#M1031</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-05-16T20:11:20Z</dc:date>
    </item>
  </channel>
</rss>

