不具合 ID 番号 |
BUG-000174676 |
送信されました | February 28, 2025 |
最終更新日 | March 24, 2025 |
適用対象 | ArcGIS Pro |
見つかったバージョン | 3.2.1 |
オペレーティング システム | Windows Server |
オペレーティング システムのバージョン | 2016 64 Bit |
ステータス | As Designed
開発チームによる確認後に、この動作が設計どおりであると判断されました。 詳細については、「参考情報」セクションをご参照ください。
|
参考情報
This is the intended design, but the rule is written incorrectly. A literal value cannot be returned if no field is assigned.
Currently, the rule is not assigned to any field. However, there is an else statement that may execute and return a value of 101. If that branch is executed, 101 is returned without a designated field to store it.
var gID = $feature.Foreign_Key
var related_Features = Filter(FeatureSetByName($datastore, 'cities', ["CITY_FIPS", "STATE_CITY"]), 'GlobalID = @gID')
var test = First(related_Features)
if (!IsEmpty(test)){
return {
"result" : {"attributes" : {"XY" : test.CITY_FIPS, "STATE_CITY" : test.POP1990}}
}
} else {
return 101
}
The user need to specify which field to return the 101 to or simply if they don't want to do anything replace it with return;
var gID = $feature.Foreign_Key
var related_Features = Filter(FeatureSetByName($datastore, 'cities', ["CITY_FIPS", "STATE_CITY"]), 'GlobalID = @gID')
var test = First(related_Features)
if (!IsEmpty(test)){
return {
"result" : {"attributes" : {"XY" : test.CITY_FIPS, "STATE_CITY" : test.POP1990}}
}
} else {
return;
}
対処法
As a workaround, create multiple rules for one table, where each rule will dedicatedly calculate the values for one field.
再現の手順