laptop and a wrench

Bogue

In ArcGIS Pro, MakeFeatureLayer_management() creates a lock which unable to be deleted.

Dernière publication: January 25, 2021 ArcGIS Pro
Numéro d’ID de bogue BUG-000136135
EnvoiDecember 14, 2020
Dernière modificationJuly 1, 2024
S’applique àArcGIS Pro
Version trouvée2.7 Beta
Système d’exploitationWindows OS
Version du système d’exploitation10.0
StatutWill Not Be Addressed

Informations supplémentaires

This behavior is by design. Running arcpy.management.MakeFeatureLayer creates two objects which reference the feature class inside the FGDB (thus the .lock file). These two objects are the result object, and the internal gp layer object.

Solution de contournement

To successfully remove the locks, add arcpy.Delete_management(res[0].name) and del res . Then the lock is released.

Étapes pour reproduire

ID de bogue: BUG-000136135

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