laptop and a wrench

Erro

The Apply Symbology From Layer tool does not work when used in a Python script from the toolbox in ArcGIS Pro 3.2.2.

Última Publicação: August 28, 2019 ArcGIS Pro
Número de ID do Erro BUG-000119907
EnviadoFebruary 7, 2019
Última ModificaçãoMay 15, 2025
Aplica-se àArcGIS Pro
Versão encontrada2.3
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

To fix this issue: 1. After adding the arcpy.ApplySymbologyFromLayer_management(layer, lyrfile) Python command, add the arcpy.SetParameterAsText(2, layer) parameter. 2. Save the script. 3. ArcGIS Pro > Catalog Pane > Toolbox > Right click Script > Properties. 4. Properties Window > Parameter Tab > Add a new parameter of type Layer, and set it to derived output Documenation: https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/setting-script-tool-parameters.htm#GUID-59C4A61C-AC33-4BA3-8453-AC8328E34453.

Solução Provisória

  1. After adding the arcpy.ApplySymbologyFromLayer_management(layer, lyrfile) Python command, add the arcpy.SetParameterAsText(2, layer) parameter.
  2. Save the script.
  3. In ArcGIS Pro, navigate to the Catalog pane and click Toolbox.
  4. Right-click the script and click Properties.
  5. In the Properties window, select the Parameter tab. Add a new parameter of the Layer type, and configure the parameters based on ArcGIS Pro: Setting script tool parameters.

Etapas para Reproduzir

ID do Erro: BUG-000119907

Software:

  • ArcGIS Pro

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download