Field is not Nullable Error (Calculate Field)

1042
2
Jump to solution
11-03-2020 08:10 AM
MatthewMcMillan1
New Contributor III

Hi all, 

I am trying to populate a column 'Residentia' with YES or NO based on if another column (AllDetails) contains certain text.

When I run the below code, it gives me a 'Field is not nullable Error'

Can anyone advise?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
DavidPike
MVP Frequent Contributor

if "rezone" in field:

    result = "YES"

else:

    result = "NO"

return result 

View solution in original post

2 Replies
DavidPike
MVP Frequent Contributor

if "rezone" in field:

    result = "YES"

else:

    result = "NO"

return result 

MatthewMcMillan1
New Contributor III

David, thank you again!