laptop and a wrench

不具合

Using a GetParameterAsText variable in an ArcGIS Pro calculated field code does not return the correct result of the output and does not recognize the isSame function when running through the script tool.

最後に公開された状態: June 7, 2022 ArcGIS Pro
不具合 ID 番号 BUG-000147506
送信されましたMarch 10, 2022
最終更新日March 20, 2025
適用対象ArcGIS Pro
見つかったバージョン2.9
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0
ステータスNon-Reproducible

参考情報

The CalculateField tool requires the field names within ‘!’. The user's script misses the '!'. The following code works: exp = "isSame(!{}!,!{}!)".format(Field1, Field2) arcpy.management.CalculateField(LayerComp, MatchField, exp, "PYTHON3", codeblock, "TEXT", "NO_ENFORCE_DOMAINS")

対処法

Use an update cursor.

再現の手順

不具合 ID: BUG-000147506

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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