laptop and a wrench

Bogue

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

Dernière publication: April 29, 2019 ArcGIS Pro
Numéro d’ID de bogue BUG-000121607
EnvoiApril 9, 2019
Dernière modificationJuly 31, 2025
S’applique àArcGIS Pro
Version trouvée2.3.2
Version de correction2.4
StatutFixed

Solution de contournement

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.

Étapes pour reproduire

ID de bogue: BUG-000121607

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement