laptop and a wrench

Erro

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

ArcGIS Pro
Número de ID do Erro BUG-000156764
EnviadoMarch 20, 2023
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Pro
Versão encontrada3.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
Versão Fixa3.2, 3.1.2
StatusFixed

Informações Adicionais

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.

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: BUG-000156764

Software:

  • ArcGIS Pro

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download