HOW TO
In ArcGIS Pro, disabling a field’s Allow NULL property prevents storing null values in the database. However, this does not prevent the entry of empty strings ("") in text fields. Since the system treats NULL and empty strings as two distinct values, a field may appear blank in the attribute table despite containing data.
This article explains the workflow to enforce an attribute rule that ensures text fields are always populated with meaningful values.
to open the Expression Builder dialog box.if (IsEmpty($feature.<Field_Name>)) {
return false;
}
return true;

Note: The IsEmpty() function evaluate both null values and empty strings. Returning false prevents the record from being saved if the field is empty. Meanwhile, returning true allows saving when a valid value is present.
The error message below indicates NULL and empty string values are prevented in the attribute table.

Article ID: 000037890
Get help from ArcGIS experts
Start chatting now