ERROR

The action can't be completed because the folder or a file in it is open in another program

Last Published: March 30, 2021

Error Message

A common practice when attempting to reinstall or perform software repair for ArcGIS Enterprise is to perform a clean uninstallation of the software. In some instances, the clean uninstallation process of ArcGIS Enterprise components such as Portal for ArcGIS, ArcGIS Server and ArcGIS Data Store does not complete because the program files cannot be deleted. When attempting to delete the components' program folders from the local machine, the following error message is returned:

Error:
The action can't be completed because the folder or a file in it is open in another program
The image displays the error message: The action can't be completed because the folder or a file in it is open in another program when attempting to uninstall the ArcGIS Enterprise Data Store component

Cause

The ArcGIS Enterprise components services exist in Windows Services even after the related components are uninstalled and removed from the machine.

Solution or Workaround

Follow the workflow below to resolve the error.

Warning:   
The instructions below include making changes to essential parts of the operating system. Esri recommends performing a backup of the operating system and files, including the registry, before proceeding.

Esri cannot guarantee results from incorrect modifications while following these instructions. Exercise caution. Consult a qualified computer systems professional if necessary.
  1. Close all the ArcGIS applications on the machine.
  2. Open the Windows Start menu.
  3. In the search bar, type regedit, and press Enter. If prompted, click Yes in the User Account Control window.
Image showing the search for regedit in the Windows search bar to open the Registry Editor
  1. In the Registry Editor window, expand HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services.
  2. Right-click the ArcGIS Data Store folder, and click Export to save a copy.
The Export selection of the Registry Editor window of ArcGIS Data Store
  1. Right-click the ArcGIS Data Store folder, and click Delete to delete the folder.
  2. Repeat Steps 4 through 6 for the ArcGIS Server and Portal for ArcGIS folders.
  3. Reboot the machine.
  4. Attempt to delete the ArcGIS Enterprise components' program folders by navigating to the address below:
C:\Program Files\ArcGIS\<ArcGIS Enterprise folder>
Note:
The ArcGIS Enterprise folders include the ArcGIS Server, Portal for ArcGIS, and ArcGIS Data Store folders.

Article ID:000025029

Software:
  • ArcGIS Data Store
  • Portal for ArcGIS
  • ArcGIS Server

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic