I want to populate the field CAPDESC with the field "CAP_DESC" .
What am I missing?
I am getting this error message :
ERROR 000800: The value is not a member of TEST | NO_TEST.
Create a new fieldmappings and add the two feature classes.
fieldmappings = arcpy.FieldMappings()
fieldmappings.addTable(FCFrom)
fieldmappings.addTable(FCTo)
schemaType = "NO_TEST "
fieldmappings.replaceFieldMap(fieldmappings.findFieldMapIndex("CAPDESC"), fieldmap)
fieldmap.addInputField(FCFrom, "CAP_DESC")
fieldmappings.removeFieldMap(fieldmappings.findFieldMapIndex("CAP_DESC"))
arcpy.Append_management(FCFrom, FCTo, schemaType, fieldmappings)