laptop and a wrench

Bug

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

ArcGIS Pro
Bug-ID-Nummer BUG-000171352
EingereichtOctober 9, 2024
Zuletzt geändertJune 21, 2025
Gilt fürArcGIS Pro
Gefunden in Version3.3.1
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
Behoben in Version3.5
StatusFixed

Zusätzliche Informationen

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000171352

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln