PROBLEM

Hosted feature view does not inherit new field added to hosted feature service

Last Published: January 21, 2022

Description

After adding a new field to a hosted feature service, a view created from the service does not display the new field. The changes made to the schema do not appear to be inherited to the view from the primary hosted feature service. By default, schema changes such as adding or removing fields can only be made to the primary hosted feature layer. Any existing dependent hosted feature layer views should inherit the schema changes from the primary hosted feature layer, even though the view has been created previously.

Cause

The visibility of the field has been disabled. This is a known limitation, as the newly added field is not visible in the hosted feature layer view by default. The definition of each view must be updated for the newly added field to be visible in the hosted feature layer views. Refer to ArcGIS Online: Manage hosted feature layers for more information.

Solution or Workaround

The following solution resolves the issue by updating the definition of the hosted feature layer view:

  1. Log in to ArcGIS Online and navigate to the My Content tab.
  2. Click the hosted feature layer view to open its item details page.
  3. On the hosted feature layer view's item details page, click the Settings tab.
  4. Click Feature Layer (hosted, view) and click Update view.
  5. On the Update view page, configure the following settings.
    1. In the Choose layers section, under Layers, ensure the view layer is selected. Click Next.
The Choose layers window displaying the view layer.
  1. Under Included layers, in the Define filters and fields for individual layers section, click the view layer.
The Included layers displaying the view layer.
  1. In the Layer definitions pane, click the Fields tab > Select fields. The Select fields window opens.
The Layer definitions window displaying the new field in the Select fields section.
  1. In the Select fields window, select the newly added field in the hosted feature service. In this example, the new field is NewField2022. Click Done.
The Select fields window displaying the field to be added to the view layer.
The Select fields window displaying the field to be added to the view layer.
  1. Click the back button in the Layer definitions section.
The Layer definitions back button.
  1. In the Included layers pane, click Update.
The Included layers pane displaying the Update button.
  1. Open the view layer in Map Viewer or Map Viewer Classic, and open the attribute table.
    • In Map Viewer Classic, in the attribute table, click the add icon on the top right, and check the new field to display it in the attribute table.
    • In Map Viewer, in the attribute table, click the settings icon. In the Field visibility window, click the new field to display it and click Done.

Article ID:000017596

Software:
  • ArcGIS Online

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic