laptop and a wrench

Bug

The Layer symbology fails to update in the Script tool if the layer is accessed through a Script tool parameter.

Last Published: May 5, 2020 ArcGIS Pro
Bug ID Number BUG-000129995
SubmittedApril 8, 2020
Last ModifiedMay 16, 2025
Applies toArcGIS Pro
Version found2.5
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusIn Product Plan

Workaround

If layer is accessed through:

p = arcpy.mp.ArcGISProject("CURRENT")

m = p.listMaps('Map')[0]

layer = arcpy.GetParameter(0) # FeatureLayer Parameter

fld1 = arcpy.GetParameter(1) # String ParameterĀ 

fld2 = arcpy.GetParameter(2) # String Parameter

sym = layer.symbology

layer = m.listLayers(layer.name)[0]

There is no issue.

Use stand alone Python script using arcpy.mp.ArcGISProject.SaveACopy().

Steps to Reproduce

Bug ID: BUG-000129995

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