I am using arcpy CopyFeatures_management to copy feature class from database to in_memory
The source feature class has 50 columns, I want to copy only 5 columns
I don't want to loop of the copied feature class and delete the remaining 45 columns one by one
is there a faster and easier way to copy subset of the columns to the new destination?
Thanks!
Solved! Go to Solution.
Use the Feature Class to Feature Class with the Field Map parameter.
To remove fields during processing, delete output fields from the Field Map. This will not affect the input.
Use the Feature Class to Feature Class with the Field Map parameter.
To remove fields during processing, delete output fields from the Field Map. This will not affect the input.