Correct the ArcGIS "Failed to execute" error message
In ArcGIS, you may see this error message in red text in the tool dialog box while you're using a geoprocessing tool in ArcToolbox or running a script in ModelBuilder. The most common reason for a tool process to fail is that you have spaces in the path to the folder where the output file will be written, particularly when working with raster datasets or using the Spatial Analyst Extension.
For example, if you are using the "Mosaic to New Raster" tool, the path c:\temp
is acceptable, but c:\Documents and
Settings\username\My Documents
is not. If you are using a tool that temporarily writes files to a location during processing, you may also need to make sure the temporary folder location does not have spaces in the path.
To change the scratch workspace for ArcGIS geoprocessing:
- Open ArcMap.
- From the menu, select .
- Expand the menu. Next to "Scratch Workspace", click the icon.
- Navigate to a directory location without spaces in the pathway, and then click .
- In the "Environment Settings" window, click .
You might also encounter problems with the filename length. When using some ArcGIS scripts, the output raster will have the same name as the associated dbf
file but without the
.dbf
extension. This means you will need to limit your
dbf
name to 13 characters.
This is document axan in the Knowledge Base.
Last modified on 2019-12-11 13:49:06.