Skip to main content
1 of 2
om_henners
  • 15.7k
  • 2
  • 47
  • 86

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