laptop and a wrench

不具合

The $originalFeature function fails during feature creation in ArcGIS Field Maps version 25.1.0, while editing existing features is successful.

ArcGIS Field Maps
不具合 ID 番号 BUG-000176361
送信されましたMay 12, 2025
最終更新日October 15, 2025
適用対象ArcGIS Field Maps
見つかったバージョン25.1.0
オペレーティング システムN/A
オペレーティング システムのバージョンN/A
修正されたバージョン25.2.6
ステータスFixed

対処法

During feature creation, $originalFeature is often null because no original feature exists yet. Since $originalFeature is not available at the time of feature creation, avoid using it in expressions intended for initializing new features. Instead, use $feature.

To handle this correctly, create separate attribute rules for feature creation and feature editing. Use $originalFeature only in rules that apply to feature updates.

Additionally, ensure to check for null values before referencing $originalFeature.

It is recommended to differentiate between feature creation (INSERT) and feature editing (UPDATE) using $editcontext.editType.

 

if ($editcontext.editType == 'INSERT') {

 return 'New'

} else if ($editcontext.editType == 'UPDATE' && $originalFeature.status == 'Complete') {

 return 'Revisit'

} else {

 return 'New'

}

if ($editcontext.editType == 'INSERT') {

 return 'New'

} else if ($editcontext.editType == 'UPDATE' && $originalFeature.status == 'Complete') {

 return 'Revisit'

} else {

 return 'New'

}

 

With a null check for safety:

if ($originalFeature == null) {

 return 'New'

} else if ($originalFeature.status == 'Complete') {

 return 'Revisit'

} else {

 return 'New'

}

再現の手順

不具合 ID: BUG-000176361

ソフトウェア:

  • ArcGIS Field Maps

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

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

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

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

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

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

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