PROBLEM

Unable to run a geoprocessing tool on hosted feature layer views in ArcGIS Pro

Last Published: December 21, 2020

Description

A hosted feature layer view in ArcGIS Online is created as a different view of data represented by a hosted feature layer. A feature layer view can be defined to display only selected features or fields. Similar to a hosted feature layer, a hosted feature layer view can be added into ArcGIS Pro for data or features editing.

In some instances, running a certain geoprocessing tool on a feature layer view with view definitions in ArcGIS Pro fails, and returns the following error message:

Error:   
000339: Input <value> does not have OIDs
The image of the error message.

Cause

The feature layer view does not have an ObjectID field that is required for the operation to successfully execute. Refer to ArcGIS Pro: 000339: Input does not have OIDs for more information.

Solution or Workaround

To solve this issue, make a temporary copy of the hosted feature layer view using the Make Feature Layer tool, and export the new layer to a file geodatabase using the Feature Class to Feature Class tool. The latter tool creates an ObjectID field in the output feature class.

  1. Add the hosted feature layer view to the ArcGIS Pro project.
  2. Use the Make Feature Layer tool to create a new layer from the feature layer view.
    1. In the Geoprocessing pane, click the Toolboxes tab, and navigate to Data Management Tools > Layers and Table Views > Make Feature Layer.
    2. Select the feature layer view layer for Input Features.
    3. Set a name for Output Layer.
    4. Click Run. A new temporary layer is created and added to the project.
  3. Use the Feature Class to Feature Class tool to export the new layer to a file geodatabase.
    1. In the Geoprocessing pane, click the Toolboxes tab, and navigate to Conversion Tools > To Geodatabase > Feature Class to Feature Class.
    2. Select the new layer from Step 2 for Input Features.
    3. Select a file geodatabase for Output Location.
    4. Set a new feature class name for Output Feature Class.
    5. Click Run. A new feature class is created and added to the project. A new OBJECTID field is created in the feature class attribute table.
The image of the OBJECTID field.
  1. Run the desired geoprocessing tool on the new feature class.
  2. Optionally, publish the new feature class to ArcGIS Online as a hosted feature layer. Refer to ArcGIS Pro: Share a web feature layer for more information.

Article ID: 000024718

Software:
  • ArcGIS Online
  • ArcGIS Pro 2 7 x
  • ArcGIS Pro 2 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options