English

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

Summary

In some cases, an ArcGIS Online hosted feature layer must be constantly updated with data from an external feature class to ensure the feature layer is always updated with the latest data. For example, in a continuous data collection project where the collected features and data are recorded continuously in the external feature class, the latest recorded data must be updated to the hosted feature layer 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 Alter the schema of a database table for steps to edit the field schema.

Procedure

The instructions provided describe how to update a hosted feature layer in ArcGIS Online with data from an external feature class in ArcGIS Pro.

The following figure shows some attributes of a hosted feature layer in ArcGIS Online that 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.

An image of 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. In the Geoprocessing pane, click the Toolboxes tab, and navigate to Data Management Tools > Fields > Add Global IDs.
    2. In the Add Global IDs tool pane, select the feature class for Input Datasets.
    3. Click Run.
  3. Sign in to ArcGIS Online. Refer to 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. In the Catalog pane, click the Portal tab, and click My Content An image of the My Content button..
    2. 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 the attribute table of the feature class, select the features to be updated to the hosted feature layer. To select features, refer to Select features interactively or Select features using attributes. The selected features are highlighted in the map and attribute table.
      An image of the selected features in the attribute table.
    2. In the Geoprocessing pane, click the Toolboxes tab, and navigate to Data Management Tools > General > Append.
    3. In the Append tool pane, select the feature class as Input Datasets.
    4. Select the added hosted feature layer as Target Dataset.
    5. Leave the Schema Type by default, and click Run.
      An image of the Append dialog box.
  6. Click the Refresh An image of 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. For more information, refer to Work with attribute data.

The following figure shows the attributes of the hosted feature layer have been updated with data from the external feature class. The number of features in the hosted feature layer is updated to 78 features.

An image of the updated number of features in a hosted feature layer.

Related Information