I am running ArcGIS 10.2.2 Version 10.2.2.3552, using ArcMap.
I am creating a python script and one of the things i need to do is apply symbology from layer to a shapefile in my mxd that is maintained outside of the mxd. It works fine in model builder but when i run it in python i get multiple errors.
# Import arcpy module import arcpy # Local variables: Tioga = "Tioga\\Tioga" Tioga_lyr = "C:\\Users\\jcarl\\Desktop\\Dynamic LH Map\\Symbology\\Tioga.lyr" # Process: Apply Symbology From Layer arcpy.ApplySymbologyFromLayer_management(Tioga, Tioga_lyr)
Runtime error Traceback (most recent call last): File "", line 10, in File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", line 6004, in ApplySymbologyFromLayer raise e ExecuteError: ERROR 000966: The input layer is not valid Failed to execute (ApplySymbologyFromLayer).