AnsweredAssumed Answered

Remove All Field Mapping for arcpy.FeatureClassToFeatureClass_conversion

Question asked by rkammer on Apr 6, 2015
Latest reply on Apr 7, 2015 by Dan_Patterson

Can anyone please tell me why this is not working? When I use the FeatureClassToFeatureClass_conversion geoprocessing tool, I do not want any of the existing fields to be in the output file.

fldmap = arcpy.FieldMappings()
remfldmap = fldmap.removeAll()
arcpy.FeatureClassToFeatureClass_conversion(lyr,GDB,fc,"",remfldmap,"")


Outcomes