PROBLEM

Unable to download a file from ArcGIS Hub

Last Published: December 9, 2021

Description

Attempts to generate and download a file from ArcGIS Hub, for example a shapefile or a KML file, fail, and return the error message below.

Error:
File generation failed
The

In some cases, the file generates indefinitely and does not download with the following warning message returned:

Warning:   
File generation in progress
We are updating the file. This may take some time.
The file generation loads indefinitely with a warning message

Cause

  • Larger and more complex datasets may cause download times to increase or fail entirely.
  • The spatial index of the hosted feature layer is not properly rebuilt when published to ArcGIS Online. Out-of-date indexes can lead to poor query performance.

Solution or Workaround

To improve file generation performance and prevent downloads from failing, use either one of the following workarounds.

Enable the 'Keep track of created and updated features' option in ArcGIS Online

Enabling the Keep track of created and updated features option allows ArcGIS Hub to determine which features are updated. Refer to ArcGIS Online: Allow others to edit for steps and more information.

Enable the 'Optimize layer' option in ArcGIS Online

To improve the file generation time, the Optimize layers option in ArcGIS Hub can be enabled in ArcGIS Online for the layers. Enabling this option, however, increases the file size of the feature layer. Refer to ArcGIS Online: Optimize drawing of complex lines and polygons for steps and more information.

Download the file as a file geodatabase

Alternatively, large files can be downloaded as a file geodatabase. However, the Allow others to export to different formats option must be enabled before doing so. Refer to ArcGIS Hub: Enable file geodatabase downloads for steps and more information.

Repair the spatial index of the layers

  1. In ArcGIS Online, navigate to the Content tab.
  2. Click the hosted feature layer to open the hosted feature layer's item page.
  3. On the Settings tab, check the Enable Editing option.
The Enable Editing option in the Settings tab
  1. Click Rebuild Indexes under the Manage Spatial Indexes section.
The Rebuild Indexes option in the Settings tab
  1. Check the feature layers checkboxes to rebuild spatial indexes for the layers and click Rebuild.

Download a previously generated file in ArcGIS Hub

If an updated file is not required, an older version of the file can be downloaded in ArcGIS Hub. Previously generated files do not need to be regenerated and can be downloaded immediately. To download a previously generated file, click the Download Options drop-down menu under the desired file and click Download file previously generated on <Date>, <Time>.

The option to download a previously generated file in ArcGIS Hub

Article ID: 000026917

Software:
  • ArcGIS Online
  • Portal for ArcGIS

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