laptop and a wrench

Bug

The Python code fieldmappings.addTable() does not return all fields.

ArcGIS Pro
Bug ID Number BUG-000158537
SubmittedMay 24, 2023
Last ModifiedMarch 26, 2025
Applies toArcGIS Pro
Version found3.1.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusKnown Limit

Additional Information

This is a known limitation. Any required or geodatabase-managed fields are not loaded into the field map by default. If editor tracking fields are needed, they can be added to the field map in the following script: ```fc = "DBO.Points"desc = arcpy.Describe(fc)fms = arcpy.FieldMappings()fms.addTable(fc)if desc.editorTrackingEnabled: tracking_fields = [ desc.creatorFieldName, desc.createdAtFieldName, desc.editorFieldName, desc.editedAtFieldName ] for tf in tracking_fields: fm = arcpy.FieldMap() fm.addInputField(fc, tf) fms.addFieldMap(fm)arcpy.conversion.ExportFeatures(fc, "memory/test", field_mapping=fms)```For more information on accessing tracking field information via arcpy.Describe(), see https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/editor-tracking-properties.htm

Steps to Reproduce

Bug ID: BUG-000158537

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