Why does copying ArcSDE datasets and features in Python give ERROR 000732 & 000735?
I keep getting a kick back that says this:ERROR 000732: Input Features: Dataset 'Database Connections\Wyoming.sde\Supporting_MT_DBO_Geology' does not exist or is not supportedFailed to execute (FeatureClassToGeodatabase).
**********************UPDATED*************************** **************HERE'S THE ENTIRE SCRIPT******************
# Import modulesimport sys, string, os, datetime, arcpy# Sets the start timenowstart = datetime.datetime.now()# Set location of SDE instance - in this case a special SDE connection just for this scriptSDEname = r"C:\Users\jjones\AppData\Roaming\ESRI\Desktop10.1\ArcCatalog\Wyoming.sde"SDEnameShort = r"'Database Connections\Wyoming.sde"# Set up the log fileLogLoc = r"P:\Database_Backups\SDE\BackupLog_"LgFile = LogLoc + nowstart.strftime("%Y_%m_%d_%H%M") + ".log"logfile_out = open(LgFile, 'w')# Write the start time to the log filelogfile_out.write("Backup process started on " + nowstart.strftime("%Y_%m_%d %H:%M") + "\n")# Deletes temp timestampdel nowstart# Add the Conversion and Data Management Toolboxes to the geoprocessor#Sets work environment to SDEnamearcpy.env.workspace = SDEname#Sets environment to overwritearcpy.env.overwriteOutput = True# Resets the start timenowstart = datetime.datetime.now()# Creates a variable for naming the backup GDBYearMonthDayTime = nowstart.strftime("%Y_%m_%d_%H%M")# Variables and parameters for setting up the backup GDBoutgdb = "PetroPAM_Backup_" + YearMonthDayTime + ".gdb"outpath = r"P:\Database_Backups"output = outpath + os.sep + outgdbprint output#Create the backup GDBarcpy.CreateFileGDB_management(outpath, outgdb)print "Created BackupGDB"# Find and export feature classes in datasets to a backup GDBlogfile_out.write("\nCreating Feature Dataset List...\n")fc = arcpy.ListFeatureClasses()dsList = arcpy.ListDatasets("*", "Feature")print dsListprint "The Datasets"for dsGEO in dsList: outDS = arcpy.ValidateTableName(dsGEO) arcpy.CreateFeatureDataset_management(output, outDS) fcListGEO = arcpy.ListFeatureClasses("*","",dsGEO) print fcListGEO print "Feature Classes in Dataset" for fcGEO in fcListGEO: print fcGEO print SDEnameShort + os.sep + outDS + os.sep + fcGEO arcpy.FeatureClassToGeodatabase_conversion(SDEnameShort + os.sep + outDS + os.sep + fcGEO, output + outDS)Any ideas? I'm using ArcMap 10.1
أكثر...
I keep getting a kick back that says this:ERROR 000732: Input Features: Dataset 'Database Connections\Wyoming.sde\Supporting_MT_DBO_Geology' does not exist or is not supportedFailed to execute (FeatureClassToGeodatabase).
**********************UPDATED*************************** **************HERE'S THE ENTIRE SCRIPT******************
أكثر...