laptop and a wrench

漏洞

The FieldMap.addTable method does not add editor tracking fields in ArcGIS Pro versions later than 3.0.

ArcGIS Pro
漏洞 ID 编号 BUG-000163394
已提交December 3, 2023
上次修改时间May 8, 2025
适用范围ArcGIS Pro
找到的版本3.2
操作系统Windows OS
操作系统版本11.0 64 bit
状态Known Limit

附加信息

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

重现步骤

漏洞 ID: BUG-000163394

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项