laptop and a wrench

Bug

The legend element in an ArcGIS Pro project does not show the newly added layer to an existing map using ArcPy.

Zuletzt veröffentlicht: April 29, 2019 ArcGIS Pro
Bug-ID-Nummer BUG-000121607
EingereichtApril 9, 2019
Zuletzt geändertJuly 31, 2025
Gilt fürArcGIS Pro
Gefunden in Version2.3.2
Behoben in Version2.4
StatusFixed

Workaround

From our testing we found two workarounds:

  1. This only happens for scripts run outside of Pro. Scripts in the Python Window work as well as script tools.
  2. To remedy the problem outside of Pro, all you need to do is reference the layout first using

lyt = p.listLayouts()[0]   

 

BEFORE adding the layers to a map.

Schritte zur Reproduzierung

Bug-ID: BUG-000121607

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln