I am trying to write a code that uses “arcpy.CopyFeatures_management” to copy all feature classes inside an Enterprise geodatabase to a Geodatabase.
The issue here happens when using FOR loop to copy the whole list of F.C’s to the geodatabase, I am trying to assign the same name for the features. But it seems that there is something that I am missing.
I tried different statements for “out_feature_class” with no luck, sometimes the code fails to run or it copies a single F.C only.
import arcpy ,sys
for dataitem in SDEfcList:
fcdesc = arcpy.Describe(dataitem)