I am trying to update the symbology of a layer with another layer with a python script. I have written a code for this. But I am getting the following error message :
ERROR 000732: Input Layer: Dataset C:\Temp\Assessment\work\code Output does not exist or is not supported
ERROR 000968: The symbol layer does not match the input layer
Here is a part my code that is experiencing this.
# Apply symbology from a layer
SymbologyLayer = arcpy.mapping.Layer("C:\Temp\Assessment\mod05AssessedEx\Shadow Line Symbols.lyr")
Layers = arcpy.mapping.ListLayers(SymbologyLayer)
inputLayer = arcpy.MakeFeatureLayer_management(RasterIntoPolygon,"newLayer")
saveHere = r"C:\Temp\Assessment\work\code Output"
arcpy.SaveToLayerFile_management(inputLayer,saveHere)
print arcpy.Describe("C:\Temp\Assessment\mod05AssessedEx\Shadow Line Symbols.lyr")
DEMwithSymbol = arcpy.ApplySymbologyFromLayer_management(saveHere,Layers[2])
arcpy.RefreshActiveView()
arcpy.RefreshTOC
print "Applied symbology"
Can anyone please give any suggestion???