AnsweredAssumed Answered

arcpy.Append_management  how to match from/to fields with different names

Question asked by jsn on Jun 25, 2019
Latest reply on Jun 26, 2019 by jsn

Hello

 

How do I match FCFrom field "Point_X"  with  FCTo field "PointX"    before doing an arcpy.Append_management  

 

 

# Create a new fieldmappings and add the two feature classes.
    fieldmappings = arcpy.FieldMappings()
    fieldmappings.addTable(FCFrom)
    fieldmappings.addTable(FCTo)
    schemaType = "NO_TEST "

 

   ????  how do I match FCFrom field "Point_X"  with  FCTo field "PointX" 

 

    arcpy.Append_management(FCFrom, FCTo, schemaType, fieldMappings, subtype)

Outcomes