laptop and a wrench

Error

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

Última publicación: January 25, 2021 ArcGIS Pro
Número de ID del error BUG-000136135
EnviadoDecember 14, 2020
Última modificaciónJuly 1, 2024
Relacionado conArcGIS Pro
Versión encontrada2.7 Beta
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoWill Not Be Addressed

Información adicional

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.

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000136135

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga