laptop and a wrench

Bogue

The addDataFromPath function in ArcGIS Pro fails to add a feature class if the project path is not set to CURRENT.

Dernière publication: February 11, 2021 ArcGIS Pro
Numéro d’ID de bogue BUG-000136941
EnvoiJanuary 22, 2021
Dernière modificationJune 5, 2024
S’applique àArcGIS Pro
Version trouvée2.7
Système d’exploitationWindows OS
Version du système d’exploitation10.0
StatutWill Not Be Addressed

Informations supplémentaires

User error. Save the .aprx file before exiting the code.

Solution de contournement

To add the data using the addDataFromPath function, the project must be opened and the path provided must be CURRENT.

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

Étapes pour reproduire

ID de bogue: BUG-000136941

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