ERROR
Attempting to publish a shapefile to ArcGIS Online via ArcGIS Pro returns the following error message.
Error: External sharing process failed
This error occurs due to the installation of Python with ArcGIS Pro. At version 1.3, Python is installed along with ArcGIS Pro; this removes the requirement for a secondary installation of Python for ArcGIS Pro to run stand-alone Python Scripts. In some instances, multiple versions of Python with different environments, such as 32-bit or 64-bit, can be installed on the same machine. The PYTHONPATH environment variable overwrites the PATH variable, which designates which version of Python to use. For more information, refer to FAQ: Why do Python scripts fail on a machine with both ArcGIS for Server and Desktop installed?
Note: Prior to ArcGIS Pro version 1.3, Python can be installed as a standalone program.
Depending on the cause, select one of the options below to resolve the issue.
Warning: The instructions below include making changes to essential parts of your operating system. It is recommended that you backup your operating system and files, including the registry, before proceeding. Consult with a qualified computer systems professional, if necessary. Esri cannot guarantee results from incorrect modifications while following these instructions. Therefore, use caution and proceed at your own risk.
This workaround can be performed without uninstalling ArcGIS Pro.
Note: Removing both variables may hamper Python functionality in ArcMap, but not for ArcGIS Pro.
In the event that the system variables cannot be removed due active application dependency on the same machine as ArcGIS Pro, launch ArcGIS Pro with a batch file using the following syntax:
SET PYTHONPATH="" START "" "C:\Program Files\ArcGIS\Pro\bin\ArcGISPro.exe"
If the aforementioned workarounds do not work, perform a clean uninstallation and reinstallation of ArcGIS Pro. This workaround is an alternative if removing the Python PATH environment variable does not resolve the error.
Note: If the uninstallation process fails, stop all active ArcGIS Pro processes via the Task Manager before reattempting uninstallation.
C:\Users\<username>\AppData\Local\ESRI\ArcGISPro (and any other Pro folders) C:\Users\<username>\AppData\Roaming\ESRI\ArcGISPro C:\Program Files\ArcGIS\Pro C:\ProgramData\Microsoft\Windows\StartMenu\Programs\ArcGIS\ArcGIS Pro
Note: Some of the folders above may be hidden. To show hidden folders, refer to Windows Help: Show hidden files.
HKEY_CURRENT_USER\Software\ESRI\ArcGIS Online For Pro HKEY_CURRENT_USER\Software\ESRI\ArcGISPro HKEY_CURRENT_USER\Software\ESRI\ArcGISPro1.0
Warning: Esri does not support modifications done to the registry of the operating system.
Get help from ArcGIS experts
Download the Esri Support App