I have a script that copies at the moment, shapefiles from one source and pastes them as a feature class into a geodatabase. However, I'm getting an error 000732 when I try to copy a feature class to a target geodatabase. It only seems to work for shapefiles. This is the error I get.
and this line of code works for the .shp
Kindly assist. I don't know what the issue could be.
Could your provide the input and output names
http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/copy-features.htm
specifies that data conversion is done, and for shapefiles, you need to specify the *.shp file extension. are you copying a featureclass to another featureclass you want to make sure that the data types of the source is correct and you are specifying a geodatabase as the destination location
Thanks, Dan. That was the problem. For the feature class, I changed the source to be the gdb and not the name of the feature class. It works!
Glad it worked out, Laura.
I tried to apply the same logic while copying feature datasets, but that doesn't seem to fly.