laptop and a wrench

Bug

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.

Zuletzt veröffentlicht: February 17, 2021 ArcGIS Pro
Bug-ID-Nummer BUG-000137029
EingereichtJanuary 27, 2021
Zuletzt geändertApril 23, 2025
Gilt fürArcGIS Pro
Gefunden in Version2.7
BetriebssystemWindows OS
Betriebssystemversion10.0
StatusWill Not Be Addressed

Zusätzliche Informationen

This is as designed.

Workaround

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000137029

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