1

I can't make the ApplySymbologyFromLayer_management work on ArcGIS Pro by any means. The following code runs smoothly but don't give any results:

import arcpy

aprx = arcpy.mp.ArcGISProject("CURRENT")
aprxMap = aprx.activeMap
layer = aprxMap.listLayers()[0]
symblayer = r"C:\referencelayer.lyrx"
arcpy.ApplySymbologyFromLayer_management(layers, symblayer)
aprx.save()

Any ideas?

  • Is this a 100% copy/paste of your code? Your layer variable is set without an S, but in the ApplySymbologyFromLayer call you're using an S: layers – KHibma Oct 4 at 12:25
  • No it is not. Changed the variables and folders. – Gustavo Oct 4 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.