Problem: Python script fails and returns the error, "000210: Cannot create output."
When executing a Python script, the following error is returned:
"000210: Cannot create output."
There are several causes for the problem:
• ArcGIS for Server is installed on the same machine, and the output path is specified to a personal geodatabase. Personal geodatabases are not supported in 64-bit processing and are not recognized by the server. This results in the script to default to a shapefile, which is not added to the personal geodatabase.
• Users do not have administrator permissions or write access on the machine where the data is being written, the data is locked, or the data is in an incorrect location. For more information, refer to the following web help, ArcGIS Help: 00210: Cannot create output.
Solution or Workaround
Follow the suggested solutions below to solve this issue:
- Change the association of Python to use 32-bit. To do this, refer to the following article: FAQ: Why do Python scripts fail on a machine with both ArcGIS for Server and Desktop installed?
- Repair ArcMap to set 32-bit Python as the default:1. Navigate to the Windows Control Panel > Programs > Programs and Features.
2. Right-click ArcGIS 10.x for Desktop > Uninstall/Change.
3. Select 'Repair' when the installation window displays.
- Log in to the machine with an administrator login.
- Ensure that the data is not locked by another user or application. For more information on data locks, refer to the following web help, ArcGIS Help: File geodatabase and locking
- Esri Support: Error: 000210 Cannot create output when running Python scripts that create feature classes
- ArcGIS Help: Geodatabase locks