HOW TO

Update a hosted feature layer in ArcGIS Online with data from a feature class in ArcGIS Pro

Last Published: July 21, 2023

Summary

ArcGIS Online hosted feature layers must be updated with data from external feature classes to ensure the feature layers are synced with the latest data. This is essential in ongoing data collection projects, whereby data and features are continuously recorded in the external feature class, and therefore require updating in ArcGIS Online.

In ArcGIS Pro, the Append tool can be used to load new data from the external feature class to the existing hosted feature layer, provided the hosted feature layer and the external feature class have the same field schema and both contain a Global ID field. If the external feature class does not have the same field schema as the hosted feature layer, refer to ArcGIS Pro: Alter the schema of a database table for steps to edit the field schema.

This article provides the workflow to update a hosted feature layer in ArcGIS Online with data from an external feature class in ArcGIS Pro.

Procedure

The hosted feature layer's attributes in ArcGIS Online (image shown below) must be updated with new data from the external feature class. The existing hosted feature layer contains 64 point features, representing the distribution of schools within the area.

The number of features in the original hosted feature layer.
  1. In ArcGIS Pro, add the feature class containing the data to load to the hosted feature layer.
  2. Add Global IDs to the feature class using the Add Global IDs tool. Skip this step if the feature class contains a Global ID field.
    1. On the top ribbon of ArcGIS Pro, click the Analysis tab > Tools. The Geoprocessing pane opens.
    2. In the Geoprocessing pane, click the Toolboxes tab, and navigate to Data Management Tools > Fields > Add Global IDs.
    3. In the Add Global IDs tool pane, select the feature class for Input Datasets.
    4. Click Run.
  3. Sign in to ArcGIS Online. Refer to ArcGIS Pro: Add a portal connection for steps to sign in to ArcGIS Online in ArcGIS Pro.
  4. Add the hosted feature layer to the map.
    1. On the top ribbon of ArcGIS Pro, click the View tab > Catalog Pane. The Catalog pane opens.
    2. In the Catalog pane, click the Portal tab, and click My Content The My Content button..
    3. Search or select the hosted feature layer to update, right-click the feature layer, and click Add To Current Map.
  5. Load the data from the external feature class to the hosted feature layer using the Append tool.
    1. In the map or attribute table of the feature class, select the features to be updated to the hosted feature layer. To select features, refer to ArcGIS Pro: Select features interactively or ArcGIS Pro: Select features using attributes. The selected features are highlighted in the map and attribute table.
The selected features in the attribute table.
  1. In the Geoprocessing pane, click the Toolboxes tab, and navigate to Data Management Tools > General > Append.
  2. In the Append tool pane, select the feature class as Input Datasets.
  3. Select the added hosted feature layer as Target Dataset.
  4. Leave the Schema Type by default, and click Run.
The Append dialog box.
  1. Click the Refresh The Refresh button. button to refresh the map. The appended data are immediately updated in the feature layer. To view the updated data, open the hosted feature layer in ArcGIS Online, and click the Data tab in the feature layer item details page. Refer to ArcGIS Online: Work with attribute data for more information.

The attributes of the hosted feature layer have been updated with data from the external feature class, as shown below. The number of features in the hosted feature layer is now 78.

The updated number of features in a hosted feature layer.

Article ID:000020494

Software:
  • ArcGIS Pro
  • ArcGIS Online

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options