PROBLEM
In ArcGIS Web AppBuilder, attempts to create a new feature using the Smart Editor widget fail, and return the message, 'Your account does not have permission to create or modify data, or this web map does not contain any editable layers'.
If a new feature is drawn, attempting to save the feature returns the following error message. In some cases, the field mentioned in the error message is not displayed in the Smart Editor pop-up.
Error: Error: Cannot insert the value NULL into column '<field name>', table '<table name>'; column does not allow nulls. INSERT fails. The statement has been terminated.
Depending on the cause, choose one of the solutions below.
Enable editing for the hosted feature layer
Enable editing for the hosted feature layer on the item details page. Refer to Problem: Unable to create or edit features using the Edit widget in ArcGIS Web AppBuilder for more information.
Set a default value for the non-nullable or required field
Modify the feature template of the feature layer to set a default value for the non-nullable or required field.
Note: This workflow is only supported in Map Viewer Classic. Only the owner of the feature layer or the organization administrators are allowed to modify the feature template.
The image below demonstrates the non-nullable or required fields populated with the specified default values when a new feature is created using the Smart Editor widget.
Unhide and enable editing for the non-nullable or required field
In ArcGIS Web AppBuilder, unhide and enable editing for the non-nullable or required field in the Smart Editor widget configuration window.
Article ID: 000026903
Get help from ArcGIS experts
Download the Esri Support App