ERROR

Failed to alter spatial reference. The dataset already has a projection defined.

Last Published: April 25, 2020

Error Message

Defining the spatial reference of a raster dataset, not already defined, using the Define Projection tool returns the error:

"Failed to alter spatial reference.
The dataset already has a projection defined. Failed to execute."

Cause

The image is being used by ArcMap. An AUX file is created for an image when it is added to ArcMap. The Define Projection tool reads the AUX file and returns the error even though the AUX file does not contain a projection definition.

Solution or Workaround

There are six options to work around this issue.

  1. Use the ArcToolbox Define Projection tool when the image is not being used by ArcMap.
  2. Use the ArcToolbox Define Projection tool in ArcCatalog.
  3. Use the ArcToolbox Define Projection tool, but instead of selecting the input dataset from the drop-down list, use the Browse button on the tool to navigate to the file.
  4. Use ArcCatalog to open up the layer properties and edit the spatial reference of the file.
  5. If errors are received during the execution of a geoprocessing script make sure the file is not in use by ArcMap/ArcCatalog.
  6. Verify that the file is not set to Read Only.

Article ID:000007940

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic