Arcpy.addTable() error

المشرف العام

Administrator
طاقم الإدارة
I am having a little trouble debugging an ex-coworkers code. I was wondering if the SE community could be another set of eyes and help me.

I am receiving this error:

RuntimeError: FieldMappings: Error in adding table to field mappings The Tuple: CIP_FDFC_Tuple = [('Cadastre', 'Installation', 'Cadastre\Installation'), ('Cadastre', 'LandParcel', 'Cadastre\LandParcel'), ('General', 'Wall', 'General\Wall')]

#Loop through CIP datasets and feature classes #env.workspace = inputgdb for (a,b,c) in CIP_FDFC_Tuple: inFeature = inputgdb + "\\" + c arcpy.AddMessage( "inFeature: "+ inFeature) #Remove GlobalID within SDE feature tables fieldmappings = arcpy.FieldMappings() fieldmappings.addTable(c) fieldmappings.removeFieldMap(fieldmappings.findFieldMapIndex("GLOBALID")) #Copying Feature class as a layer into fused gdb arcpy.AddMessage("Copying " + c + " feature layer records") arcpy.FeatureClassToFeatureClass_conversion( inFeature, tempWorkspace, c, whereClauseAll)

أكثر...
 
أعلى