When I ran my arcpy script from the python prompt, the ApplySymbologyFromLayer_management worked fine using just the layer names for the parameters. Same thing when running that tool from ArcMap itself. However... when I run it from an arcpy script, it does not work. It does not support providing full paths to the layers (e.g. the .mdb files that they are in). So, how do the parameters to ApplySymbologyFromLayer_management() have to be specified? Do they have to be somewhere special to be found with just the short names?
Traceback (most recent call last): File "G:\...\Toolboxes\SEOWellsShlBorepath.py", line 116, in <module> arcpy.ApplySymbologyFromLayer_management(in_layer=dss_prefix + cleaned_val, in_symbology_layer="APD_SHL_Half_Mile_Buffer") File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\management.py", line 6955, in ApplySymbologyFromLayer raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Input Layer: Dataset dss_4375_3_15_NH does not exist or is not supported Failed to execute (ApplySymbologyFromLayer).
dss_prefix = "dss_"
cleaned_val = "4375_3_15_NH"