laptop and a wrench

Bug

The Apply Symbology From Layer tool does not apply symbology from a .lyrx file when running in a standalone script.

Last Published: December 24, 2020 ArcGIS Pro
Bug ID Number BUG-000131219
SubmittedMay 28, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS Pro
Version found2.5.1
Operating SystemWindows OS
Operating System Version10.0
StatusKnown Limit

Additional Information

This is as designed. It is not something designed to work from a standalone script (as the standalone script does not run within the context of Pro, and doesn't know what layers are available in a Project map unless explicitly told). For this reason, when calling the layer by name in script, it does not apply symbology, but in Python Window it does. The namespace of available layers in the map project map is accessed using the list of layers retrieved from .listLayers().

Steps to Reproduce

Bug ID: BUG-000131219

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options