laptop and a wrench

Error

Using in-line variable substitution in Calculate Field Python within ModelBuilder gives a correct but potentially misleading error message which gives the appearance the tool fails but it works as intended.

Última publicación: February 17, 2021 ArcGIS Pro
Número de ID del error BUG-000137029
EnviadoJanuary 27, 2021
Última modificaciónApril 23, 2025
Relacionado conArcGIS Pro
Versión encontrada2.7
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoWill Not Be Addressed

Información adicional

This is as designed.

Solución alternativa

Ignore the error message but if there is other things wrong with the calculation this is to be overlooked.

Note: %-% is not valid Python, the validator correctly throws an error. Writing proper Python takes care of this. Enclose the variable needed to replace in a string.

Pasos para reproducir

ID del error: BUG-000137029

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga