ApplySymbologyFromLayer not working from python code

257
1
04-26-2021 04:38 PM
Labels (3)
Radzhabad
New Contributor II

I try add layer on map, but its not works. Arcgis Pro 2.7

import arcpy
import os
import sys

sys.argv.append(r'c:\test.gdb') #1
sys.argv.append(os.path.join(sys.argv[1],'Опоры')) #2PATH = sys.argv[1]
opori_path = sys.argv[2]
arcpy.env.workspace = PATH

symbology_layer = os.path.join(r'c:\Опоры.lyrx')

x = arcpy.management.ApplySymbologyFromLayer(opori_path, symbology_layer,update_symbology="Default")

Tags (1)
0 Kudos
1 Reply
GabrielMarcus1
Occasional Contributor II

I'm having this same issue. Apparently it hasn't been fixed yet?  BUG-000116527

 

0 Kudos