Summarize Within tool (ArcGIS Pro) Error

377
3
Jump to solution
12-02-2019 05:24 AM
Highlighted
New Contributor II

Hello! I'm trying to conduct a simple analysis with two vector layers: one with watershed boundaries and one with water bodies. I calculated the area for the water bodies layer so all attributes in that layer have the area in sq km. I am trying to use the "Summarize Within" tool with the two layers to find the % area of water in each watershed. But after running the tool, I got an error that gives virtually no information about why it failed. I've attached a screenshot of the error below. I appreciate any guidance or solutions you all may have. Thanks!

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Notable Contributor

Clicking on that error should take you here: 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl... 

Which provides up to 9 things to try:

  1. Null geometry, short segments, self intersections, and other geometry problems in your feature class may cause this error. Run Repair Geometry to fix any geometry problems.
  2. Check the name you are attempting to use to create output. Nonalphanumeric characters are not supported in a geodatabase. Similarly, geodatabase data names cannot start with a number. The following words are also reserved keywords in the geodatabase, so these words cannot be used on their own as a dataset name, though they can be used as part of a longer name:
    • ADD, ALTER, AND, BETWEEN, BY, COLUMN, CREATE, DELETE, DROP, EXISTS, FOR, FROM, GROUP, IN, INSERT, INTO, IS, LIKE, NOT, NULL, OR, ORDER, SELECT, SET, TABLE, UPDATE, VALUES, WHERE
  3. Check the location where you are attempting to create output. Can you browse to the location in Windows Explorer? Can you copy and paste files into this location outside of ArcGIS? If a Windows dialog box appears with the message that permission is needed to copy files to the location, there is a good chance this is the reason the tool is failing.
  4. If you are working with a very large dataset, you may be able to avoid this error by splitting the data into smaller chunks. Use the Clip (rasters) or Clip (features) tool to make a smaller subset of your data, and run the tool against this subset. If this succeeds, you can make additional subsets of the original data and run the tool against all subsets.
  5. If you are working with shapefile inputs or outputs, use a file geodatabase instead. You maybe encountering a problem specific to shapefiles. You can also try the reverse—export your file geodatabase class to a shapefile and attempt to use the shapefile. For raster data, if you're working with a file-based raster such as a .tif file or an Esri GRID, attempt to export it to a geodatabase. Conversely, you can also try exporting the raster in question to a .tif file, and attempt the process again.
  6. If your output data path is very long (containing many subfolders or a very long name), you can try creating the output with a short name in a location near the root of the drive. Do not attempt to create the output in the root of a drive, as modern operating systems usually prevent file and data creation in this location without special or administrative permission.
  7. You can try to run ArcGIS Pro in administrator mode. Right-click the application shortcut and select Run as administrator. Perform the task that was previously failing. If the error was caused by access permissions, running as an administrator may allow the operation to complete successfully.
  8. Most geoprocessing tools can successfully use data attributes that are null, but occasionally these null values may cause a problem. You can test this by making a copy of your data, and using Calculate Field to replace any null values with 0 or another chosen value (some use -1 to indicate null). If you're working with raster data, you can use the Con tool to replace any null values with 0 or another chosen value.
  9. Temporary or intermediate data is often written to the location C:\Users\{yourUserName}\AppData\Local\Temp (this location can be accessed by entering %localappdata%\temp into Windows Explorer). Close ArcGIS Pro, clear the Temp directory, restart the application, and attempt your process again.

But as that error indicates, the geoprocessing team likes to consider the 999999 itself as a bug, because when they get a reproducible case, they want to fix it to handle the error and provide a more informative message.

This error is considered a bug because there is missing exception handling in the tool. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug for your scenario.

View solution in original post

3 Replies
Highlighted
Esri Notable Contributor

Clicking on that error should take you here: 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl... 

Which provides up to 9 things to try:

  1. Null geometry, short segments, self intersections, and other geometry problems in your feature class may cause this error. Run Repair Geometry to fix any geometry problems.
  2. Check the name you are attempting to use to create output. Nonalphanumeric characters are not supported in a geodatabase. Similarly, geodatabase data names cannot start with a number. The following words are also reserved keywords in the geodatabase, so these words cannot be used on their own as a dataset name, though they can be used as part of a longer name:
    • ADD, ALTER, AND, BETWEEN, BY, COLUMN, CREATE, DELETE, DROP, EXISTS, FOR, FROM, GROUP, IN, INSERT, INTO, IS, LIKE, NOT, NULL, OR, ORDER, SELECT, SET, TABLE, UPDATE, VALUES, WHERE
  3. Check the location where you are attempting to create output. Can you browse to the location in Windows Explorer? Can you copy and paste files into this location outside of ArcGIS? If a Windows dialog box appears with the message that permission is needed to copy files to the location, there is a good chance this is the reason the tool is failing.
  4. If you are working with a very large dataset, you may be able to avoid this error by splitting the data into smaller chunks. Use the Clip (rasters) or Clip (features) tool to make a smaller subset of your data, and run the tool against this subset. If this succeeds, you can make additional subsets of the original data and run the tool against all subsets.
  5. If you are working with shapefile inputs or outputs, use a file geodatabase instead. You maybe encountering a problem specific to shapefiles. You can also try the reverse—export your file geodatabase class to a shapefile and attempt to use the shapefile. For raster data, if you're working with a file-based raster such as a .tif file or an Esri GRID, attempt to export it to a geodatabase. Conversely, you can also try exporting the raster in question to a .tif file, and attempt the process again.
  6. If your output data path is very long (containing many subfolders or a very long name), you can try creating the output with a short name in a location near the root of the drive. Do not attempt to create the output in the root of a drive, as modern operating systems usually prevent file and data creation in this location without special or administrative permission.
  7. You can try to run ArcGIS Pro in administrator mode. Right-click the application shortcut and select Run as administrator. Perform the task that was previously failing. If the error was caused by access permissions, running as an administrator may allow the operation to complete successfully.
  8. Most geoprocessing tools can successfully use data attributes that are null, but occasionally these null values may cause a problem. You can test this by making a copy of your data, and using Calculate Field to replace any null values with 0 or another chosen value (some use -1 to indicate null). If you're working with raster data, you can use the Con tool to replace any null values with 0 or another chosen value.
  9. Temporary or intermediate data is often written to the location C:\Users\{yourUserName}\AppData\Local\Temp (this location can be accessed by entering %localappdata%\temp into Windows Explorer). Close ArcGIS Pro, clear the Temp directory, restart the application, and attempt your process again.

But as that error indicates, the geoprocessing team likes to consider the 999999 itself as a bug, because when they get a reproducible case, they want to fix it to handle the error and provide a more informative message.

This error is considered a bug because there is missing exception handling in the tool. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug for your scenario.

View solution in original post

Highlighted
New Contributor II

Wow! Seriously, thank you so so much! I guess I should've googled it first, but thank you for laying it out all for me. I started testing each of them and ruling solutions out. First I clipped out a subset of the data and the Summarize Within tool worked. Though I didn't need to do that, the solution ended up being just needing to Repair Geometry. If you have the time, that "Repair Geometry" tool doesn't actually change anything about your data, right? It just corrects geometry errors based on topology rules? Thank you again!

Reply
0 Kudos
Highlighted
Esri Notable Contributor