laptop and a wrench

Bug

The Replace All does not function in the attribute table when trying to convert a number to Null in the numeric type fields in ArcMap.

Zuletzt veröffentlicht: August 16, 2019 ArcGIS for Desktop
Bug-ID-Nummer BUG-000111845
EingereichtFebruary 22, 2018
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS for Desktop
Gefunden in Version10.6
StatusWill Not Be Addressed

Zusätzliche Informationen

This is as designed. A better solution is offered in ArcGIS Pro's Find & Replace (in development now).

Workaround

A Python query can achieve this. However, this query only works on one field at a time.

In the Field Calculator, select the Python parser, and check the Show Codeblock check box.

In the Pre-Logic Script Code box, copy and paste the following code:

def updateValue(value):

if value == 0:

return None

else: return value

Type the following code in the second box, and replace '!Field_Name!' with the field name from the fields list, as required:

updateValue(!Field_Name!)

Schritte zur Reproduzierung

Bug-ID: BUG-000111845

Software:

  • ArcGIS for Desktop

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