PROBLEM

The Zonal Statistics as Table tool fails in ArcGIS Pro

Last Published: November 22, 2024

Description

In ArcGIS Pro, attempting to run the Zonal Statistics as Table tool fails and the following generic error is returned:

Error: 
Error 99999: Something unexpected caused the tool to fail.

Cause

  • The pixel size of the input raster data is bigger than the zone size.
  • The input data size is too large.
  • The raster dataset value for the 'Maximum number of values to display' is too large.
  • The input feature class contains broken geometry.
  • The input data is a shapefile.

Solution or Workaround

Depending on the cause, the following workarounds are applicable.

Note:
The Zonal Statistics as Table tool requires the Spatial Analyst or Image Analyst license.

Reduce the pixel size of the raster layer

In ArcGIS Pro, use the Resample tool to reduce the pixel size below the zone size. Esri recommends using the Nearest resampling technique as the technique minimizes alterations to the pixel values while adding more cells, making it ideal for use with the Zonal Statistic as Table tool. However, note that reducing pixel size increases data volume. Therefore, carefully consider the extent of pixel size reduction.

Run the tool on subsets of the raster layer

When the input raster data is too large, use theĀ Create Map Tile Package tool or theĀ Manage Tile Cache tool to create a smaller, manageable subset of data. Then, run the Zonal Statistics as Table tool on the output subset.

Another option is to work on a specific area of the data by clipping the area with the Clip Raster tool instead of working on the entire dataset.

Alternatively, generalize the raster data to remove unnecessary details for general analysis. For more information on tools for generalization, refer to ArcGIS Pro: An overview of the Generalization toolset.

Reduce the maximum number of values to display

Specifying a large value for 'Maximum number of values to display' can cause performance issues, potentially causing the tool to fail. In ArcGIS Pro, navigate to the Project tab and click Options > Raster and Imagery > Raster Dataset. For Maximum number of values to display, set the value to the default 65,536, or a lower number.

Use the Repair Geometry tool to repair the feature class

Use the Repair Geometry tool to repair broken geometries within the feature class. For more information, refer to ArcGIS Pro: Tools for checking and repairing geometries.

Export the shapefile to a feature class file geodatabase

Shapefile is a legacy format with limitations and does not support the advanced capabilities available in geodatabases. To resolve the issue, export the shapefile to a feature class file geodatabase using the Export Features tool. For more information, refer to ArcGIS Pro: Export a shapefile.

Article ID: 000034087

Software:
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 3
  • ArcGIS Pro 3 2

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options