laptop and a wrench

Error

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

Última publicación: December 24, 2020 ArcGIS Pro
Número de ID del error BUG-000131219
EnviadoMay 28, 2020
Última modificaciónJune 5, 2024
Relacionado conArcGIS Pro
Versión encontrada2.5.1
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoKnown Limit

Información adicional

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().

Pasos para reproducir

ID del error: BUG-000131219

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga