<?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 Calling arcpy.analysis.SumamrizeWithin() multiple times in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calling-arcpy-analysis-sumamrizewithin-multiple/m-p/1668895#M100416</link>
    <description>&lt;P&gt;New to the forum. I want to use arcpy.analysis.SumamrizeWithin() in a for loop to determine which polygons a certain polyine is contained within. I will repeat for each polyline in the feature class "shp". "street10m" is a polygon file.&lt;/P&gt;&lt;P&gt;I have found that&amp;nbsp;arcpy.analysis.SumamrizeWithin() fails on every SECOND attempt within a code. The first time works fine. here is my sample script:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;print(10)&lt;BR /&gt;arcpy.conversion.FeatureClassToFeatureClass(shp,gdb,"zshp1","OBJECTID = 10")&lt;BR /&gt;print(11)&lt;BR /&gt;arcpy.conversion.FeatureClassToFeatureClass(shp,gdb,"zshp2","OBJECTID = 11")&lt;BR /&gt;print(12)&lt;BR /&gt;arcpy.conversion.FeatureClassToFeatureClass(shp,gdb,"zshp3","OBJECTID = 12")&lt;BR /&gt;print(13)&lt;BR /&gt;arcpy.analysis.SummarizeWithin("street10m","zshp1","z1")&lt;BR /&gt;print(14)&lt;BR /&gt;arcpy.analysis.SummarizeWithin("street10m","zshp1","z2")&lt;BR /&gt;print(15)&lt;BR /&gt;arcpy.analysis.SummarizeWithin("street10m","zshp1","z3")&lt;BR /&gt;print(16)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As written, the line to make "z2" will fail, even though its equivalent to the line which makes "z1". However, if I comment out the line which makes "z1", then "z2" is made successfully and "z3" fails. Error code 100014. If I create z1,z2,z3 manually as a batch, it also succeeds.&lt;/P&gt;&lt;P&gt;What is causing this behaviour? How can I allow SummarizeWithin() to be used more than once in the same arcpy script?&lt;/P&gt;&lt;P&gt;ArcGIS Pro 3.3 and ArcPy 3.11.8.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2025 19:48:17 GMT</pubDate>
    <dc:creator>BenMoir</dc:creator>
    <dc:date>2025-11-26T19:48:17Z</dc:date>
    <item>
      <title>Calling arcpy.analysis.SumamrizeWithin() multiple times</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calling-arcpy-analysis-sumamrizewithin-multiple/m-p/1668895#M100416</link>
      <description>&lt;P&gt;New to the forum. I want to use arcpy.analysis.SumamrizeWithin() in a for loop to determine which polygons a certain polyine is contained within. I will repeat for each polyline in the feature class "shp". "street10m" is a polygon file.&lt;/P&gt;&lt;P&gt;I have found that&amp;nbsp;arcpy.analysis.SumamrizeWithin() fails on every SECOND attempt within a code. The first time works fine. here is my sample script:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;print(10)&lt;BR /&gt;arcpy.conversion.FeatureClassToFeatureClass(shp,gdb,"zshp1","OBJECTID = 10")&lt;BR /&gt;print(11)&lt;BR /&gt;arcpy.conversion.FeatureClassToFeatureClass(shp,gdb,"zshp2","OBJECTID = 11")&lt;BR /&gt;print(12)&lt;BR /&gt;arcpy.conversion.FeatureClassToFeatureClass(shp,gdb,"zshp3","OBJECTID = 12")&lt;BR /&gt;print(13)&lt;BR /&gt;arcpy.analysis.SummarizeWithin("street10m","zshp1","z1")&lt;BR /&gt;print(14)&lt;BR /&gt;arcpy.analysis.SummarizeWithin("street10m","zshp1","z2")&lt;BR /&gt;print(15)&lt;BR /&gt;arcpy.analysis.SummarizeWithin("street10m","zshp1","z3")&lt;BR /&gt;print(16)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As written, the line to make "z2" will fail, even though its equivalent to the line which makes "z1". However, if I comment out the line which makes "z1", then "z2" is made successfully and "z3" fails. Error code 100014. If I create z1,z2,z3 manually as a batch, it also succeeds.&lt;/P&gt;&lt;P&gt;What is causing this behaviour? How can I allow SummarizeWithin() to be used more than once in the same arcpy script?&lt;/P&gt;&lt;P&gt;ArcGIS Pro 3.3 and ArcPy 3.11.8.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 19:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calling-arcpy-analysis-sumamrizewithin-multiple/m-p/1668895#M100416</guid>
      <dc:creator>BenMoir</dc:creator>
      <dc:date>2025-11-26T19:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calling arcpy.analysis.SumamrizeWithin() multiple times</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calling-arcpy-analysis-sumamrizewithin-multiple/m-p/1668927#M100418</link>
      <description>&lt;P&gt;There is this article on the support site&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/error-100014-summarize-within-failed-000027089" target="_blank"&gt;Error: 100014: Summarize within Failed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and this error, amongst several&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/bug/when-using-the-summarize-within-tool-in-a-modelbuilder-bug-000172797" target="_blank"&gt;BUG-000172797 for ArcGIS Pro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and this post which I replied to&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/arcpy-summarize-within-fails-after-one-iteration/td-p/1401641" target="_blank"&gt;Arcpy Summarize Within fails after one iteration w... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which suggests that file locking may be at issue, but the post wasn't resolved&lt;/P&gt;&lt;P&gt;So perhaps check your paths, pre-process your inputs and try again after a restart&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 20:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calling-arcpy-analysis-sumamrizewithin-multiple/m-p/1668927#M100418</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-11-26T20:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calling arcpy.analysis.SumamrizeWithin() multiple times</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calling-arcpy-analysis-sumamrizewithin-multiple/m-p/1669063#M100431</link>
      <description>&lt;P&gt;Thank you, Dan, I have seen the support site article, which you also shared on a number of other threads. Thanks. Path length and naming cannot possibly be the issue here, as both lines of code have the same number and type of characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have not seen the&amp;nbsp; BUG-000172797 yet, but it relates to an option I am not using.&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 16:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calling-arcpy-analysis-sumamrizewithin-multiple/m-p/1669063#M100431</guid>
      <dc:creator>BenMoir</dc:creator>
      <dc:date>2025-11-27T16:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling arcpy.analysis.SumamrizeWithin() multiple times</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calling-arcpy-analysis-sumamrizewithin-multiple/m-p/1669067#M100433</link>
      <description>&lt;P&gt;Update: Adding this line to the top of the ArcPy script fixed the issue. Something to do with Schema Locks maybe? I am not really sure why it worked, but it did.&lt;/P&gt;&lt;P&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 17:07:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calling-arcpy-analysis-sumamrizewithin-multiple/m-p/1669067#M100433</guid>
      <dc:creator>BenMoir</dc:creator>
      <dc:date>2025-11-27T17:07:57Z</dc:date>
    </item>
  </channel>
</rss>

