FeatureClassToFeatureClass attribute tables are blank

05-20-2021 06:01 AM
Labels (2)
New Contributor II

I'm creating a script tool where I want to create a number of point/polygon shapefiles, then convert them to geodatabase feature classes in the current workspace. The shapefiles are generated correctly, but the GDB feature classes have blank attribute tables, with only the attribute labels populating. 

Here's the relevant part of my script:

class Run:
    def __init__(self, file, run_id):
        self.gdb = arcpy.GetParameter(0)
        # other stuff
    def get_fc(self):
        c_feats = []
        for c in self.crafts:
            shape = self.new_aircraft(c)  # shapefile
            c_feat = arcpy.conversion.FeatureClassToFeatureClass(shape, 
        self.gdb, c.id)
            c_feat_name = str(c_feat)
        arcpy.SetParameterAsText(3, ';'.join(c_feats))


Tags (3)
0 Kudos
1 Reply
Esri Contributor

With missing code (#other stuff) it's a little hard to know exactly was is happening.

0 Kudos