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 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项