laptop and a wrench

Bug

:After publishing content to ArcGIS Online using the function "Folder.add()", ArcGIS Pro continues to hold onto the file, and you get this error: "PermissionError: [WinError 32] The process cannot access the file because it is being used by another process." This error prevents you from deleting or removing the file geodatabase you just uploaded.

ArcGIS API for Python
Bug ID Number BUG-000178289
SubmittedJuly 29, 2025
Last ModifiedNovember 21, 2025
Applies toArcGIS API for Python
Version found2.4
Operating SystemWindows OS
Operating System Version11.0 64 bit
Version Fixed2.4.2
StatusFixed

Workaround

Replace folder.add() with gis.content.add()*

*gis.content.add() will populate a deprecation warning

Steps to Reproduce

Bug ID: BUG-000178289

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options