Description
In ArcGIS Field Maps, administrators are unable to configure fields so that null values are not allowed. Fields with null values pose a problem because in some instances, data are collected and submitted successfully even though they contain null values.
The image below demonstrates an instance wherein data are submitted successfully although a null value is included in the Test field.
Cause
This is by design. In ArcGIS Desktop, the Allow Null option cannot be modified for layers containing existing data, or if the table or feature class is registered as versioned. Therefore, the fields in Field Maps are automatically set to include null values.
Solution or Workaround
Use one of the methods below to resolve the issue.
Duplicate the existing features in ArcGIS Pro
- In ArcGIS Pro, click the Analysis tab on the top ribbon and click Tools.
- In the Geoprocessing pane, search for and select Copy Features (Data Management Tools).
- In the Copy Features pane, click the Parameters tab.
- Select the original feature layer for Input Features, and fill in a new feature layer name for Output Feature Class. Click Run. The new feature layer is added to the map.
- Open the attribute fields from the original feature layer, and delete all the features.
- Open the fields view to uncheck the Allow NULL check box. Click Save.
- In the Contents pane, click the newly created feature layer from Step 4. Copy the features from the new feature layer and paste them in the original feature layer. Refer to ArcGIS Pro: Copy selected features for instructions to copy the features and use Paste Special to paste the features in the original layer.
- Remove the new feature layer and save the project before republishing it to ArcGIS Online.
Duplicate the existing features in ArcMap
- In ArcMap, navigate to the Catalog pane and right-click the geodatabase. Click Import > Feature Class (single).
- In the Feature Class To Feature Class window, select the original feature layer for Input Features and fill in a new feature layer name for Output Feature Class. Change Output Location, if necessary. Click OK.
- Click the Edit tool on the Editor toolbar and click Start Editing.
- In the Table Of Contents pane, right-click the newly created feature layer and click Selection > Select All.
- Right-click the selected features and select Delete. Click Stop Editing > Yes.
- In the Catalog pane, right-click the new feature layer and select Properties.
- In the Feature Class Properties window, click the Fields tab and select the desired field.
- Under Field Properties, change Allow NULL values to No. Click Apply > OK.
- Repeat Steps 3 through 4 on the original feature layer.
- Copy the selected features and paste them in the new feature layer. Refer to ArcMap: Copying and pasting features for instructions. Click Stop Editing > Yes.
- Remove the original feature layer and republish the map to ArcGIS Online.
The image below demonstrates a failed submission when a field has a null value in ArcGIS Field Maps.