laptop and a wrench

Bogue

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.

Dernière publication: August 16, 2019 ArcGIS for Desktop
Numéro d’ID de bogue BUG-000111845
EnvoiFebruary 22, 2018
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée10.6
StatutWill Not Be Addressed

Informations supplémentaires

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

Solution de contournement

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!)

Étapes pour reproduire

ID de bogue: BUG-000111845

Logiciel:

  • ArcGIS for Desktop

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