laptop and a wrench

Bug

When using the Merge tool in ArcPy, the field mappings are not honored.

ArcGIS Pro
Bug ID Number BUG-000171352
SubmittedOctober 9, 2024
Last ModifiedJune 21, 2025
Applies toArcGIS Pro
Version found3.3.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed3.5
StatusFixed

Additional Information

This issue is addressed in ArcGIS Pro 3.5.

Workaround

In the Python notebook script, change the call to the Merge tool from arcpy.Merge_management([st_class, rc], merge_path, f_Mappings) to arcpy.Merge_management([st_class, rc], merge_path, f_Mappings.exportToString()). This uses the string version of the FieldMappings object as input to the Merge tool instead of the arcpy.FieldMappings() object and produce the expected output.

Steps to Reproduce

Bug ID: BUG-000171352

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options