laptop and a wrench

Bug

The arcpy.MakeRasterLayer_management tool returns the following error, "ERROR 000670: output <value> is same as input <value>."

Last Published: August 19, 2020 ArcGIS for Desktop
Bug ID Number BUG-000095702
SubmittedApril 12, 2016
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.3.1
Operating SystemWindows OS
Operating System Version7.0 64 Bit
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle.  If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

Specify a different name for the new raster layer. The layer can then be renamed, and the table of contents (TOC) can be updated using the following code:arcpy.MakeRasterLayer_management(in_raster="raster", out_rasterlayer="rasttmp") mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] for lyr in arcpy.mapping.ListLayers(mxd, "*", df): if (<a href="http://lyr.name" target="_blank">lyr.name</a> == "rasttmp"): <a href="http://lyr.name" target="_blank">lyr.name</a> = "raster" arcpy.RefreshTOC()This is a relatively inconvenient method to have a raster layer by the same name as the input.

Steps to Reproduce

Bug ID: BUG-000095702

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options