PROBLEM

Exporting a hosted feature service as a file geodatabase in ArcGIS Online returns a corrupted ZIP file

Last Published: September 15, 2020

Description

In ArcGIS Online, a hosted feature service exported as a file geodatabase is downloaded as a corrupt ZIP file with a file size of 1 KB.

Cause

This issue occurs when the feature classes in the exported hosted feature service are corrupt, or contain broken geometry.

Solution or Workaround

A workaround is to repair and export the feature classes from the hosted feature service in ArcGIS Pro or ArcMap.

ArcGIS Pro

  1. In ArcGIS Pro, add a connection to ArcGIS Online. Refer to ArcGIS Pro: Manage portal connections from ArcGIS Pro - Add a portal connection for steps to do this.
  2. In the Catalog pane, navigate to the Portal tab.
  3. Add the hosted feature service to the map by right-clicking the hosted feature service and navigating to Add To New > Map.
  4. In the Geoprocessing pane, navigate to Toolboxes > Conversion Tools > To Geodatabase and open the Feature Class To Geodatabase tool.
  5. Configure the Feature Class To Geodatabase tool parameters as follows:
    1. For Input Features, select the layers to be exported.
    2. For Output Geodatabase, click Browse.... Image of the Feature Class To Geodatabase pane.
    3. Click the New Item drop-down menu and click File Geodatabase.
    4. Rename the file geodatabase, and click OK.
    5. Click Run.
Image of the Feature Class to Geodatabase pane
Note:
Geoprocessing tools, such as the Feature Class To Geodatabase tool, check and repair feature class geometries as part of their loading process. Refer to ArcGIS Pro: Checking and repairing geometries for more information.

ArcMap

  1. In ArcMap, add a connection to ArcGIS Online. Refer to ArcMap: Sign in to ArcGIS Online or ArcGIS Enterprise in ArcGIS Desktop applications for steps to do this.
  2. In the Catalog window, expand My Hosted Services, and drag the hosted feature service onto the map.
  3. In the Catalog window, navigate to Toolboxes > System Toolboxes > Conversion Tools > To Geodatabase, and open the Feature Class to Geodatabase tool.
  4. Configure the Feature Class to Geodatabase tool parameters as follows:
    1. For Input Features, select the feature classes to be exported from the drop-down list.
    2. For Output Geodatabase, click Browse Image of the Repair Geometry window, and click New File Geodatabase.
    3. Rename the file geodatabase, and click Add.
    4. Click OK to run the tool.
  5. In the Catalog window, add a connection to the newly created file geodatabase. Refer to ArcMap: Connect to a file or personal geodatabase or an SQLite database for more information.
  6. Expand the file geodatabase and add the layers to the map.
  7. In the Catalog window, navigate to Toolboxes > System Toolboxes > Data Management Tools > Features, and open the Repair Geometry tool.
  8. Configure the Repair Geometry tool parameters as follows:
    1. For Input Features, select the layer to be repaired from the drop-down list.
    2. Uncheck the Delete Features with Null Geometry check box.
    3. Click OK.
Image of the Repair Geometry window
  1. Repeat this step for all subsequent layers.

REST endpoint

Another alternative is to download the hosted feature service as a file geodatabase from a REST endpoint. Refer to How To: Download a large hosted feature service with attachments from a REST endpoint for steps to do this.

Article ID:000022902

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

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic