laptop and a wrench

不具合

Using the != Python operator with a conditional in an ArcGIS Pro Network Dataset field script expression returns "Error 160410."

ArcGIS Pro
不具合 ID 番号 BUG-000156764
送信されましたMarch 20, 2023
最終更新日June 5, 2024
適用対象ArcGIS Pro
見つかったバージョン3.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
修正されたバージョン3.2, 3.1.2
ステータスFixed

参考情報

This issue is addressed in ArcGIS Pro 3.2 and 3.1.2. Using the != operator in a field script evaluator's code block produces a syntax error when the network is built. This issue has been non-reproducible since ArcMap. However, changes in ArcGIS Pro 3.1 make it more visible. Previously, the build error text file would have included a long list of non-specific errors for each affected feature. Now, the Build Network tool fails with an error and shows the syntax error explicitly.

対処法

Instead of using the != operator, use 'in []'. For instance, instead of x != 0, use x not in [0].

再現の手順

不具合 ID: BUG-000156764

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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