laptop and a wrench

漏洞

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.

上次发布: August 16, 2019 ArcGIS for Desktop
漏洞 ID 编号 BUG-000111845
已提交February 22, 2018
上次修改时间June 5, 2024
适用范围ArcGIS for Desktop
找到的版本10.6
状态Will Not Be Addressed

附加信息

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

解决办法

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

重现步骤

漏洞 ID: BUG-000111845

软件:

  • ArcGIS for Desktop

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项