Bug ID Number |
BUG-000156764 |
Submitted | March 20, 2023 |
Last Modified | June 5, 2024 |
Applies to | ArcGIS Pro |
Version found | 3.1 |
Operating System | Windows OS |
Operating System Version | 10.0 64 Bit |
Version Fixed | 3.2, 3.1.2 |
Status | Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
|
Additional Information
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.
Workaround
Instead of using the != operator, use 'in []'. For instance, instead of x != 0, use x not in [0].
Steps to Reproduce