laptop and a wrench

Bug

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

ArcGIS Pro
Bug-ID-Nummer BUG-000156764
EingereichtMarch 20, 2023
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Pro
Gefunden in Version3.1
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
Behoben in Version3.2, 3.1.2
StatusFixed

Zusätzliche Informationen

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].

Schritte zur Reproduzierung

Bug-ID: BUG-000156764

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln