edhal

Exporting feature classes in to gdb

Discussion created by edhal on Dec 10, 2013
Latest reply on Dec 11, 2013 by jskinner-esristaff
Hi guys,
I am new for Python. I have been trying to write a stand alone script to create a gdb and transfer files from another location to the new gdb. When I run the script I keep getting the following error message;
ERROR 000732: Input Features: Dataset ---does not exist or is not supported.
I tried hard but I couldn't find where the problem is. Can you help please???????

Here is what my code looks like:


import arcpy

out_folder_path=raw_input ('Filepath for the new gbd')
gdbName = raw_input('Name of the gbd')
out_Name = gdbName +'.gdb'
arcpy.env.workspace = raw_input ('Location of files to be imported to gbd')
arcpy.env.overwriteOutput = True


#excute file building
arcpy.CreateFileGDB_management (out_folder_path,out_Name)

nFc=raw_input ('How many feature classes to import?')
intnFc=int(nFc)
fc=[]

for ffc in range (0,intnFc):[INDENT]ffc=raw_input('Insert file path for feature class')[/INDENT]
[INDENT]fc.append(ffc)[/INDENT]

   
# import files to gdb  
arcpy.FeatureClassToGeodatabase_conversion(fc,out_folder_path+'/'+out_Name)

[/CODE]

Outcomes