Select to view content in your preferred language

Can’t calculate field to <NULL> using None

86
5
Jump to solution
yesterday
Jim_Riedmann
New Contributor III

I’m using ArcGIS Pro 3.3.1.  I have an attribute table with a date field.  I want to replace some of the values in the field with <NULL>.  Using the field calculator, with the Expression Type set to Python, I type None in the space for the new field value.  I get Warning 003571 and the value in the table stays the same.  I can’t find any way to get <NULL> into the date field.   I looked at the Fields view and NULL is allowed for that field.

0 Kudos
1 Solution

Accepted Solutions
Eugene_Adkins
Occasional Contributor III

Using Field Calculator/Arcade, type "return null" and if the fields are nullable this should work.

View solution in original post

0 Kudos
5 Replies
Eugene_Adkins
Occasional Contributor III

Using Field Calculator/Arcade, type "return null" and if the fields are nullable this should work.

0 Kudos
Jim_Riedmann
New Contributor III

That method works, thanks very much.

0 Kudos
KenBuja
MVP Esteemed Contributor

Even though you do get that warning, the date values are calculated to null.

Snag_173811a.png

0 Kudos
Jim_Riedmann
New Contributor III

No, they are not calculated to NULL.  They remain unchanged.

0 Kudos