Select to view content in your preferred language

Zonal Statistics 2 execute error

606
0
06-11-2020 10:11 AM
andrewtillinghast
New Contributor

First, thanks to all of the contributors here. You have pulled me from the flames more times than I can count.

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:

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
Start Time: Thu Jun 11 09:40:29 2020
Succeeded at Thu Jun 11 09:40:30 2020 (Elapsed Time: 0.77 seconds)
Executing (Calculate Value): CalculateValue "UC2_muni_A_diss"[0:10] # Variant
Start Time: Thu Jun 11 09:40:30 2020
Value = UC2_muni_A
Succeeded at Thu Jun 11 09:40:30 2020 (Elapsed Time: 0.16 seconds)
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
Start Time: Thu Jun 11 09:40:30 2020
Running script ZonalStatisticsAsTable02...
Described zone data

Traceback (most recent call last):
  File "P:\2020\2020-026_I2-Parks\04_Working-Docs\06_GIS\Toolboxes\SpatialAnalystSupplementalTools\Scripts\zonalstatisticsastable02.py", line 320, in execute
    arcpy.sa.ZonalStatisticsAsTable(in_zone_data.valueAsText, zone_field.valueAsText, in_value_raster.valueAsText, out_table.valueAsText, ignore_nodata.valueAsText, statistics_type.valueAsText)
  File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\sa\Functions.py", line 6380, in ZonalStatisticsAsTable
    statistics_type)
  File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\sa\Utils.py", line 53, in swapper
    result = wrapper(*args, **kwargs)
  File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\sa\Functions.py", line 6372, in Wrapper
    statistics_type)
  File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\geoprocessing\_base.py", line 510, in <lambda>
    return lambda *args: val(*gp_fixargs(args, True))
ExecuteError: ERROR 010296: Error in writing raster C:\Users\ATILLI~1\AppData\Local\Temp\arc1588\t_t81176.tif.
ERROR 010067: Error in executing grid expression.
ERROR 010419: Unable to build the attribute table of raster as required by the operation.
Failed to execute (ZonalStatisticsAsTable).


Failed to execute (Zonal Statistics 2).
Failed at Thu Jun 11 09:42:49 2020 (Elapsed Time: 2 minutes 19 seconds)

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.

I have tried:

  • Set Environments- Current Workspace and a separate Scratch Workspace
  • Set Environments- Processing extent set to Same As the value raster (Pop2010_dasy_ORWA)
  • Make sure raster and feature zone data are in same projection
  • Set output path to < 128 characters with no spaces (the C:\I2\Parks_Pulse_tmp.gdb in the results)
  • Turn off background processing

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.

-AT

Tags (1)
0 Kudos
0 Replies