laptop and a wrench

不具合

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

ArcGIS Pro
不具合 ID 番号 BUG-000158537
送信されましたMay 24, 2023
最終更新日March 26, 2025
適用対象ArcGIS Pro
見つかったバージョン3.1.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.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-000158537

ソフトウェア:

  • ArcGIS Pro

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動