<?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 Python program stops on &amp;amp;quot;DeleteIdentical&amp;amp;quot; without an error message. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-program-stops-on-amp-quot-deleteidentical/m-p/227774#M17662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Python program stops running but there is not an error message.&amp;nbsp; I know that the "Repair" is completed without a problem because I had print statements giving me the status of the program.&amp;nbsp; After the program stops, I am able to start ArcMap and I can use the "DeleteIdentical" tool manually without a problem on the output data and it removes 171 duplicate lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the code and I have tried several things like putting a tolerance for the DeleteIdentical and skipping the MultpartToSinglePart and I added the part to do a Repair. Also, tried using "in_memory" instead of a file-geodatabase.&amp;nbsp; This exact same code has worked in the past.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
#&amp;nbsp; stream is the path to the file-geodatabase feature class.&amp;nbsp; 
arcpy.Identity_analysis (stream + "3", "BrdgDeck", stream + "4")
arcpy.MultipartToSinglepart_management (stream + "4", stream + "5")
arcpy.RepairGeometry_management (stream + "5")
arcpy.DeleteIdentical_management (stream + "5", ["Shape", "NOTE"])
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 16:22:26 GMT</pubDate>
    <dc:creator>BillMiller</dc:creator>
    <dc:date>2013-08-20T16:22:26Z</dc:date>
    <item>
      <title>Python program stops on &amp;quot;DeleteIdentical&amp;quot; without an error message.</title>
      <link>https://community.esri.com/t5/python-questions/python-program-stops-on-amp-quot-deleteidentical/m-p/227774#M17662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Python program stops running but there is not an error message.&amp;nbsp; I know that the "Repair" is completed without a problem because I had print statements giving me the status of the program.&amp;nbsp; After the program stops, I am able to start ArcMap and I can use the "DeleteIdentical" tool manually without a problem on the output data and it removes 171 duplicate lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the code and I have tried several things like putting a tolerance for the DeleteIdentical and skipping the MultpartToSinglePart and I added the part to do a Repair. Also, tried using "in_memory" instead of a file-geodatabase.&amp;nbsp; This exact same code has worked in the past.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
#&amp;nbsp; stream is the path to the file-geodatabase feature class.&amp;nbsp; 
arcpy.Identity_analysis (stream + "3", "BrdgDeck", stream + "4")
arcpy.MultipartToSinglepart_management (stream + "4", stream + "5")
arcpy.RepairGeometry_management (stream + "5")
arcpy.DeleteIdentical_management (stream + "5", ["Shape", "NOTE"])
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 16:22:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-program-stops-on-amp-quot-deleteidentical/m-p/227774#M17662</guid>
      <dc:creator>BillMiller</dc:creator>
      <dc:date>2013-08-20T16:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Python program stops on "DeleteIdentical" without an error message.</title>
      <link>https://community.esri.com/t5/python-questions/python-program-stops-on-amp-quot-deleteidentical/m-p/227775#M17663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently the "DeleteIdentical" tool does not like the environment for Extent even if the extent covers the entire feature class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fix was to set the extent to: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.Extent = "MAXOF"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It only took me 4 hours to figure that out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 18:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-program-stops-on-amp-quot-deleteidentical/m-p/227775#M17663</guid>
      <dc:creator>BillMiller</dc:creator>
      <dc:date>2013-08-20T18:19:44Z</dc:date>
    </item>
  </channel>
</rss>

