<?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: Arcpy Bug? loop error ..runs great for 899 iterations and then fails at the 900th in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28385#M2175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does it fail if you start at 900? How about 901? I run cursors on 117000 record parcel feature classes every Monday morning with no problem. Can we see the whole of the code?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it fails also when starting at 900 or after 900.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2012 16:59:52 GMT</pubDate>
    <dc:creator>EricScharnhorst</dc:creator>
    <dc:date>2012-03-01T16:59:52Z</dc:date>
    <item>
      <title>Arcpy Bug? loop error ..runs great for 899 iterations and then fails at the 900th</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28379#M2169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Before it breaks, my script does this in a loop:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for i in range (1, 2000):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if ID = i:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;step 1: export one point whose ID = i, feature class to feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;step 2: make polygon, 500 meter buffer around the point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;step 3: clip a raster with the polygon from step 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;step 4: do a bunch of spatial analysis on the clipped raster&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;step 5: export a table with stats from step 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The loop breaks at step 2 after the 900th iteration, which is just about 1/2 way to completion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'File "C:\Programmer\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 7692, in Clip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisscripting.ExecuteError: ERROR 000622: Failed to execute (Clip). Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000628: Cannot set input into parameter rectangle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The errors makes sense only because step 2 does not produce a polygon after the 900th time through the loop. Question is, why no polygon?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 14:19:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28379#M2169</guid>
      <dc:creator>EricScharnhorst</dc:creator>
      <dc:date>2012-03-01T14:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Bug? loop error ..runs great for 899 iterations and then fails at the 900th</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28380#M2170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the buffer isnt making a poly, what are the values for that record that are being put into the buffer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 14:32:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28380#M2170</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2012-03-01T14:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Bug? loop error ..runs great for 899 iterations and then fails at the 900th</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28381#M2171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is your memory consumption upon the 899th loop? Perhaps you are running out of memory.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 15:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28381#M2171</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2012-03-01T15:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Bug? loop error ..runs great for 899 iterations and then fails at the 900th</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28382#M2172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If the buffer isnt making a poly, what are the values for that record that are being put into the buffer?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Values are good ..that record, and those that follow it all work when using the buffer tool by hand in ArcMap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 15:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28382#M2172</guid>
      <dc:creator>EricScharnhorst</dc:creator>
      <dc:date>2012-03-01T15:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Bug? loop error ..runs great for 899 iterations and then fails at the 900th</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28383#M2173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is your memory consumption upon the 899th loop? Perhaps you are running out of memory.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Memory is good. The loop breaks at 900 even if I start at 899, for example .."for i in range (899, 2000):"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 15:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28383#M2173</guid>
      <dc:creator>EricScharnhorst</dc:creator>
      <dc:date>2012-03-01T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Bug? loop error ..runs great for 899 iterations and then fails at the 900th</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28384#M2174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does it fail if you start at 900? How about 901? I run cursors on 117000 record parcel feature classes every Monday morning with no problem. Can we see the whole of the code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 16:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28384#M2174</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2012-03-01T16:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Bug? loop error ..runs great for 899 iterations and then fails at the 900th</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28385#M2175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does it fail if you start at 900? How about 901? I run cursors on 117000 record parcel feature classes every Monday morning with no problem. Can we see the whole of the code?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it fails also when starting at 900 or after 900.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 16:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28385#M2175</guid>
      <dc:creator>EricScharnhorst</dc:creator>
      <dc:date>2012-03-01T16:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Bug? loop error ..runs great for 899 iterations and then fails at the 900th</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28386#M2176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That sounds like an error in your source point file then. Have you tried Repair Geometry on the point file? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if you are using a cursor to iterate over a point file and exporting the points one at a time to a new feature class just for the geometry you can chop that step out by using the geometry object. The row object can give your the geometry to use as the input for the buffer tool. This would save the time it takes to write out to a new file over and over again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 17:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28386#M2176</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2012-03-01T17:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Bug? loop error ..runs great for 899 iterations and then fails at the 900th</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28387#M2177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That sounds like an error in your source point file then. Have you tried Repair Geometry on the point file? &lt;BR /&gt;&lt;BR /&gt;Also, if you are using a cursor to iterate over a point file and exporting the points one at a time to a new feature class just for the geometry you can chop that step out by using the geometry object. The row object can give your the geometry to use as the input for the buffer tool. This would save the time it takes to write out to a new file over and over again.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bad news is Repair Geometry didn't change anything&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good news is the geometry object is working as advertised. Thanks for the tip, Chris. The loop is continuing now past 900, and each record is processed faster ..by about 2 seconds. This move will save the loop 1 hour in total.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 14:02:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28387#M2177</guid>
      <dc:creator>EricScharnhorst</dc:creator>
      <dc:date>2012-03-02T14:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Bug? loop error ..runs great for 899 iterations and then fails at the 900th</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28388#M2178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your welcome. Happy to help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 16:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-bug-loop-error-runs-great-for-899-iterations/m-p/28388#M2178</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2012-03-02T16:30:38Z</dc:date>
    </item>
  </channel>
</rss>

