Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently have a problem running CopyFeatures_management in ESRI's ArcGIS 10.1

The following shows two Enterprise Geodatabase connection files. One includes the username and password and the other one doesn't. While still at 10.0 (SP5) running this script would result in the Database Connection prompt appearing. Since installing 10.1 (SP1 + Quality Patch) it no longer does and simply fails with error 000210.

It works fine if I switch the script to use the connection file with the credentials saved into it.

So far tested on XP and Server 2008.

Please see the script below:

import os, sys
import arceditor, arcpy

# Define the source
source_fc_full_path = r'C:\_SCRATCH\DB_work\test_upload_data.gdb\ut_random_pts_10_gdb'

# Two connection files - one with the user credentials saved to it
# the other without. Under 10.0 (SP5) using the connection string without
# the credentials would result in a Database Connection box appearing. At 10.1
# this no longer happens.
# Works fine if I switch the workspace.
# NOTE - one of them is commented out for obvious reasons.
target_wkspace = r'C:\_SCRATCH\DB_work\user_pass_not_saved.sde'
#target_wkspace = r'C:\_SCRATCH\DB_work\user_pass_saved.sde'


# Define the full target path
target_fc_full_path = os.path.join(target_wkspace, target_fc)

# Run the command that now fails at 10.1 with a 000210 if the connection string does not include user credentials saved into it...
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.