I am using arcpy.Merge_management to combine 4 CSV files into SDE. I attempting to use fieldmappings to rename the field headers, and this is causing it to crash. I've not used fieldmapping with more than two datasets simaltaneously before...
The error is trapped by the try loop, but is returning no information. Any help would be appreciated.
if booContinue == True:
fieldmappings = arcpy.FieldMappings()
fieldmap1 = arcpy.FieldMap()
fieldout1 = fieldmap1.outputField
fieldout1.name = "PCODE"
fieldmap1.outputField = fieldout1
arcpy.Merge_management([rg_Layer,ox_Layer,sn_Layer,sp_Layer], pc_layer, fieldMappings)
msg = msg + "\n" + outname + " created"
msg = msg + "\n" + "error creating " + outname + " - " + "\n" + arcpy.GetMessages(2)
booContinue = False