laptop and a wrench

Bogue

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

ArcGIS Pro
Numéro d’ID de bogue BUG-000156764
EnvoiMarch 20, 2023
Dernière modificationJune 5, 2024
S’applique àArcGIS Pro
Version trouvée3.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction3.2, 3.1.2
StatutFixed

Informations supplémentaires

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.

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000156764

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement