I'm pretty new to python and I have some trouble getting this snippet of code to work. I have some lines that work to copy shapefiles and feature classes, but I haven't managed to be able to copy feature classes from a feature dataset.
A "lookup table" exists with info on the source path, source name, target path, target name, etc. There's a field called 'BatchID' that is used as a reference for what the user wants to be copied. That said, there's a raw input that is in the code and once the user enters the number, the data in that row(s) is copied. I keep getting the error:
ERROR 000732: Input Features: Dataset C:...file path here...\test1.gdb\SanTest does not exist or is not supported Failed to execute (CopyFeatures).
Copy Feature dataset- features
if batch_id == int(btch_num): ds = arcpy.ListFeatureClasses('','', source_name) for fc in ds: print ('These features') + (fc) + (' are in the feature dataset!') arcpy.CopyFeatures_management(fc, os.path.join(target_path, os.path.splitext(fc)))