Description
In Map Viewer, a New Feature template appears unexpectedly in the Editor pane after republishing a survey associated with an existing feature layer from the ArcGIS Survey123 website.
The Editor pane below displays the New Feature template in Map Viewer.
Cause
Republishing a survey from Survey123 updates the hosted feature layer definition. If existing feature templates are no longer aligned with the updated schema, for example due to domain or field changes, Map Viewer automatically generates a default New Feature template to maintain editing functionality. This template may not appear in the Templates configuration list but is still referenced in the layer definition.
Solution or Workaround
Add new domain values and update the Templates list
- In ArcGIS Online, navigate to Content > My content.
- Browse to the hosted feature layer and open the item page.
- On the Data tab, click Fields and select the field.
- Under the Domain section, click Edit to add a new domain value to the list. In this example, the new domain value is 6.
- In Map Viewer, open the web map. Refer to ArcGIS Online: View maps for more information.
- On the Contents (dark) toolbar, on the Layers tab, click the feature layer.
- On the Settings (light) toolbar, click Configure editing
> Templates
.
- In the Configure templates window, click Update. Refer to ArcGIS Online: Manage editing templates for more information.
- Click OK. The New Feature template disappears from the Editor pane.
- Save the web map. Refer to ArcGIS Online: Save maps for instructions.
Note:
Optionally, delete the newly added domain value from the domain list. Refer to ArcGIS Online: Define domain lists and ranges for more information.
Remove the New Feature template from the hosted feature layer’s REST endpoint
- In ArcGIS Online, navigate to Content > My content.
- Browse to the hosted feature layer and open the item page.
- Click View
to open the layer's REST endpoint.
- In the ArcGIS REST Services Directory window, click Admin.
- Under Layers, click the layer.
- For Supported Operations, click Update Definition.
- In the Update Layer Definition text box, search for "New Feature" and replace the template with the JSON script below.
"templates" : [],
- In the Update Layer Definition text box, search for "lastEditDate" and replace the value with null.
- Click Update Layer Definition.
The New Feature template is no longer displayed in the Editor pane, as shown below.