Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to Export data from a geodatabase by a existed sde file(created by ArcCatalog), the Error Messges:

Executing: ExportCAD 'DataBase Connections\Connection to GIS-WANG.sde\SDE.water\SDE.ControlValve' DWG_R2010 D:\117.DWG Ignore_Filenames_in_Tables Overwrite_Existing_Files # Start Time: Thu Oct 13 16:46:59 2011 ERROR 000622: Failed to execute (ExportCAD). Parameters are not valid. ERROR 000732: Input Features: Dataset 'DataBase Connections\Connection to GIS-WANG.sde\SDE.water\SDE.ControlValve' does not exist or is not supported Failed to execute (ExportCAD). Failed at Thu Oct 13 16:46:59 2011 (Elapsed Time: 0.00 seconds)

Why "DataBase Connections" mapped to "Dataset DataBase Connections"?

share|improve this question
    
It's not, you're misreading the error message. Does the feature class referenced by that path exist? Also, try "Database Connections" instead of "DataBase Connections". –  blah238 Nov 30 '11 at 6:12
    
This is a sample for "Database Connections";the "Database Connections" is executed by arccatalog. –  user509028 Nov 30 '11 at 9:31
add comment

1 Answer

The problem is occuring, because the script does not know where "DataBase Connections" is. (ArcCatlog/ArcMAP know where it is, and this is why, it works if you use the same syntax within these applications. This is one my pet peeves when working with ArcGIS)

The actual SDE connection file is usually in %appdata%/ESRI/ArcCatlog .. or something similar.

What I usually do, is either give the entire path to the .sde file, or copy the .sde file to some location, and use that path in the script.

For example, I'll copy the .sde file from the above location, to say D:\Con and then use the following script

ExportCAD 'D:\Con\Connection to GIS-WANG.sde\SDE.water\SDE.ControlValve' DWG_R2010 D:\117.DWG Ignore_Filenames_in_Tables Overwrite_Existing_Files
share|improve this answer
    
for database connections ,How to set the executed path of the script in arccatalog or arcmap ? –  user509028 Nov 30 '11 at 8:19
    
@user509028 Are you running the script within ArcMap/ArcCatalog, or running the tool? –  Devdatta Tengshe Nov 30 '11 at 13:48
    
Export data to geodatabase By the ArcToolbox's tool in ArcCatalog 10, (*.sde) file is created by the Database Connections of ArcCatalog 10 –  user509028 Nov 30 '11 at 14:00
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.