Skip to main content
2 of 2
added 95 characters in body
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

This is because arcpy.Rename_management does not work on a map layer object - it works on objects on the disk.

Instead try:

layer.name = newName

layer.name is a read/write attribute of the arcpy.mapping.Layer class.

om_henners
  • 15.7k
  • 2
  • 47
  • 86