The arcpy.MakeFeatureLayer_management process creates a lock on every feature class in a file geodatabase and does not release them until the Python script is closed.
上次发布: April 10, 2019ArcGIS for Desktop
漏洞 ID 编号
BUG-000121239
已提交
March 27, 2019
上次修改时间
February 7, 2025
适用范围
ArcGIS for Desktop
找到的版本
10.6.1
操作系统
Windows OS
操作系统版本
2012
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support. Note that ArcGIS 10.8.2 is the current release of ArcGIS Desktop and will enter Mature Support in March 2024 (https://support.esri.com/en-us/products/arcmap/life-cycle). There are no plans to release an ArcGIS Desktop 10.9, and we recommend that you migrate to ArcGIS Pro. See Migrate from ArcMap to ArcGIS Pro (https://www.esri.com/en-us/arcgis/products/arcgis-pro/resources/migrate) for more information.
解决办法
Run the Copy tool in the script and save the compressed geodatabase to a new folder.
Compress the copy as it does not have any lock files.
Run a command to delete the unzipped copy.
For more information, refer to the provided links:Copy: http://desktop.arcgis.com/en/arcmap/10.6/tools/data-management-toolbox/copy.htmDelete: http://desktop.arcgis.com/en/arcmap/10.6/tools/data-management-toolbox/delete.htm