<?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 Zonal Statistics 2 execute error in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/zonal-statistics-2-execute-error/m-p/137908#M4697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, thanks to all of the contributors here. You have pulled me from the flames more times than I can count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running ZS2 (Spatial Analyst Supplemental Tools) using a large dataset of overlapping polygons and a population raster. The intention is to sum up all cell values within each polygon. I have broken the polygon dataset into many smaller, more manageable chunks, and after various tweaks I have gotten the process down, with successful and accurate results. Now, in the middle of working my way through each of my polygon subsets, the tool is failing to complete, seemingly in the process of writing the temporary zone rasters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Executing (Iterate Feature Classes): IterateFeatureClasses P:\2020\2020-026_I2-Parks\04_Working-Docs\06_GIS\Geodatabase\Parks_Pulse_Zonal_Pop.gdb\Diss_to_process # # NOT_RECURSIVE&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Start Time: Thu Jun 11 09:40:29 2020&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Succeeded at Thu Jun 11 09:40:30 2020 (Elapsed Time: 0.77 seconds)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Executing (Calculate Value): CalculateValue "UC2_muni_A_diss"[0:10] # Variant&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Start Time: Thu Jun 11 09:40:30 2020&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Value = UC2_muni_A&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Succeeded at Thu Jun 11 09:40:30 2020 (Elapsed Time: 0.16 seconds)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Executing (Zonal Statistics 2): ZonalStatisticsAsTable02 P:\2020\2020-026_I2-Parks\04_Working-Docs\06_GIS\Geodatabase\Parks_Pulse_Zonal_Pop.gdb\Diss_to_process\UC2_muni_A_diss OBJECTID Pop2010_dasy_ORWA C:\I2\Parks_Pulse_tmp.gdb\UC2_muni_A_ZPop_0610 SUM DATA&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Start Time: Thu Jun 11 09:40:30 2020&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Running script ZonalStatisticsAsTable02...&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Described zone data&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Traceback (most recent call last):&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp; File "P:\2020\2020-026_I2-Parks\04_Working-Docs\06_GIS\Toolboxes\SpatialAnalystSupplementalTools\Scripts\zonalstatisticsastable02.py", line 320, in execute&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.sa.ZonalStatisticsAsTable(in_zone_data.valueAsText, zone_field.valueAsText, in_value_raster.valueAsText, out_table.valueAsText, ignore_nodata.valueAsText, statistics_type.valueAsText)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\sa\Functions.py", line 6380, in ZonalStatisticsAsTable&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics_type)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\sa\Utils.py", line 53, in swapper&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = wrapper(*args, **kwargs)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\sa\Functions.py", line 6372, in Wrapper&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics_type)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\geoprocessing\_base.py", line 510, in &amp;lt;lambda&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;ExecuteError: ERROR 010296: Error in writing raster C:\Users\ATILLI~1\AppData\Local\Temp\arc1588\t_t81176.tif.&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;ERROR 010067: Error in executing grid expression.&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;ERROR 010419: Unable to build the attribute table of raster as required by the operation.&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Failed to execute (ZonalStatisticsAsTable).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Failed to execute (Zonal Statistics 2).&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Failed at Thu Jun 11 09:42:49 2020 (Elapsed Time: 2 minutes 19 seconds)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Note that the ZS2 is running in this model, just a simple iterator, although in this case there is only one feature class ("UC2_muni_A_diss") while I am troubleshooting. The feature zone polygons are collected in a feature dataset ("Diss_to_process") in a .gdb. The raster is in the same .gdb, a FGDBR file with 30m cell size, 32 bit floating point pixels.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;IMG class="image-1 jive-image" height="372" src="https://community.esri.com/legacyfs/online/496227_pastedImage_4.png" width="626" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have tried: &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Set Environments- Current Workspace and a separate Scratch Workspace&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Set Environments- Processing extent set to Same As the value raster (Pop2010_dasy_ORWA)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Make sure raster and feature zone data are in same projection&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Set output path to &amp;lt; 128 characters with no spaces (the C:\I2\Parks_Pulse_tmp.gdb in the results)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Turn off background processing&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks for your help. It is beginning to feel that the closer I get to completing this processing, the difficulties in achieving it are growing exponentially.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;-AT&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2020 17:11:51 GMT</pubDate>
    <dc:creator>andrewtillinghast</dc:creator>
    <dc:date>2020-06-11T17:11:51Z</dc:date>
    <item>
      <title>Zonal Statistics 2 execute error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/zonal-statistics-2-execute-error/m-p/137908#M4697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, thanks to all of the contributors here. You have pulled me from the flames more times than I can count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running ZS2 (Spatial Analyst Supplemental Tools) using a large dataset of overlapping polygons and a population raster. The intention is to sum up all cell values within each polygon. I have broken the polygon dataset into many smaller, more manageable chunks, and after various tweaks I have gotten the process down, with successful and accurate results. Now, in the middle of working my way through each of my polygon subsets, the tool is failing to complete, seemingly in the process of writing the temporary zone rasters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Executing (Iterate Feature Classes): IterateFeatureClasses P:\2020\2020-026_I2-Parks\04_Working-Docs\06_GIS\Geodatabase\Parks_Pulse_Zonal_Pop.gdb\Diss_to_process # # NOT_RECURSIVE&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Start Time: Thu Jun 11 09:40:29 2020&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Succeeded at Thu Jun 11 09:40:30 2020 (Elapsed Time: 0.77 seconds)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Executing (Calculate Value): CalculateValue "UC2_muni_A_diss"[0:10] # Variant&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Start Time: Thu Jun 11 09:40:30 2020&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Value = UC2_muni_A&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Succeeded at Thu Jun 11 09:40:30 2020 (Elapsed Time: 0.16 seconds)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Executing (Zonal Statistics 2): ZonalStatisticsAsTable02 P:\2020\2020-026_I2-Parks\04_Working-Docs\06_GIS\Geodatabase\Parks_Pulse_Zonal_Pop.gdb\Diss_to_process\UC2_muni_A_diss OBJECTID Pop2010_dasy_ORWA C:\I2\Parks_Pulse_tmp.gdb\UC2_muni_A_ZPop_0610 SUM DATA&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Start Time: Thu Jun 11 09:40:30 2020&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Running script ZonalStatisticsAsTable02...&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Described zone data&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Traceback (most recent call last):&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp; File "P:\2020\2020-026_I2-Parks\04_Working-Docs\06_GIS\Toolboxes\SpatialAnalystSupplementalTools\Scripts\zonalstatisticsastable02.py", line 320, in execute&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.sa.ZonalStatisticsAsTable(in_zone_data.valueAsText, zone_field.valueAsText, in_value_raster.valueAsText, out_table.valueAsText, ignore_nodata.valueAsText, statistics_type.valueAsText)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\sa\Functions.py", line 6380, in ZonalStatisticsAsTable&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics_type)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\sa\Utils.py", line 53, in swapper&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = wrapper(*args, **kwargs)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\sa\Functions.py", line 6372, in Wrapper&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics_type)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\geoprocessing\_base.py", line 510, in &amp;lt;lambda&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;ExecuteError: ERROR 010296: Error in writing raster C:\Users\ATILLI~1\AppData\Local\Temp\arc1588\t_t81176.tif.&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;ERROR 010067: Error in executing grid expression.&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;ERROR 010419: Unable to build the attribute table of raster as required by the operation.&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Failed to execute (ZonalStatisticsAsTable).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Failed to execute (Zonal Statistics 2).&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;Failed at Thu Jun 11 09:42:49 2020 (Elapsed Time: 2 minutes 19 seconds)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Note that the ZS2 is running in this model, just a simple iterator, although in this case there is only one feature class ("UC2_muni_A_diss") while I am troubleshooting. The feature zone polygons are collected in a feature dataset ("Diss_to_process") in a .gdb. The raster is in the same .gdb, a FGDBR file with 30m cell size, 32 bit floating point pixels.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;IMG class="image-1 jive-image" height="372" src="https://community.esri.com/legacyfs/online/496227_pastedImage_4.png" width="626" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have tried: &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Set Environments- Current Workspace and a separate Scratch Workspace&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Set Environments- Processing extent set to Same As the value raster (Pop2010_dasy_ORWA)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Make sure raster and feature zone data are in same projection&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Set output path to &amp;lt; 128 characters with no spaces (the C:\I2\Parks_Pulse_tmp.gdb in the results)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Turn off background processing&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks for your help. It is beginning to feel that the closer I get to completing this processing, the difficulties in achieving it are growing exponentially.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;-AT&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 17:11:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/zonal-statistics-2-execute-error/m-p/137908#M4697</guid>
      <dc:creator>andrewtillinghast</dc:creator>
      <dc:date>2020-06-11T17:11:51Z</dc:date>
    </item>
  </channel>
</rss>

