<?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 arcpy.Buffer_analysis() fails sporadically in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-buffer-analysis-fails-sporadically/m-p/648890#M50500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Folks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm experiencing a frustrating and inconsistent issue when I try to generate a buffer around a polygon. I'm using arc 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Over the course of my program, I call: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.Buffer_analysis(in_shapefile, out_shapefile, '235.0 FEET', dissolve_option = 'ALL')&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(where `in_shapefile` and `out_shapefile` are of course paths to shapefiles) on a large number of polygons. Usually this works fine, but occasionally the out_shapefile ends up empty (it is created, but contains no polygons, and the attribute table is empty). This behaviour doesn't occur in any consistent way I can figure out. I can re-run my program and it will fail on a polygon that it succeeded on last time, or sometimes the whole program will run successfully (over the same data). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I can take the in_shapefile that failed and run it through a test program that calls an identical buffer_analysis command on it 1000 times without failing. I've also tried running the same code on a machine with arc 10.0, and haven't seen this issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any suggestions? Have I found an arcpy bug? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2013 20:47:39 GMT</pubDate>
    <dc:creator>TomRutherford</dc:creator>
    <dc:date>2013-11-27T20:47:39Z</dc:date>
    <item>
      <title>arcpy.Buffer_analysis() fails sporadically</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-buffer-analysis-fails-sporadically/m-p/648890#M50500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Folks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm experiencing a frustrating and inconsistent issue when I try to generate a buffer around a polygon. I'm using arc 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Over the course of my program, I call: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.Buffer_analysis(in_shapefile, out_shapefile, '235.0 FEET', dissolve_option = 'ALL')&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(where `in_shapefile` and `out_shapefile` are of course paths to shapefiles) on a large number of polygons. Usually this works fine, but occasionally the out_shapefile ends up empty (it is created, but contains no polygons, and the attribute table is empty). This behaviour doesn't occur in any consistent way I can figure out. I can re-run my program and it will fail on a polygon that it succeeded on last time, or sometimes the whole program will run successfully (over the same data). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I can take the in_shapefile that failed and run it through a test program that calls an identical buffer_analysis command on it 1000 times without failing. I've also tried running the same code on a machine with arc 10.0, and haven't seen this issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any suggestions? Have I found an arcpy bug? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 20:47:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-buffer-analysis-fails-sporadically/m-p/648890#M50500</guid>
      <dc:creator>TomRutherford</dc:creator>
      <dc:date>2013-11-27T20:47:39Z</dc:date>
    </item>
  </channel>
</rss>

