ERROR

API error next to download options in ArcGIS Hub when items are shared through a distributed collaboration

Last Published: November 30, 2021

Error Message

Many organizations are interested in creating Open Data sites to allow the public to view and download data. To do this, they may use a distributed collaboration between ArcGIS Online and ArcGIS Enterprise to share content, and ArcGIS Hub to make the data publicly available. One issue that may come up during this process is an API error that displays when attempting to download a hosted feature layer from ArcGIS Hub. Related to this issue is the absence of the Export Data button in the Item Details page in ArcGIS Online.

Cause

This error is due to content shared through the distributed collaboration as references, instead of as copies. Editing the collaboration to share content as copies resolves the issue, but all items to be shared must be sync-enabled.

Note: 
This is not the only cause of API errors when attempting to download data from ArcGIS Hub.

Solution or Workaround

The solution is to create a collaboration between ArcGIS Online and ArcGIS Enterprise that shares hosted feature layers as copies, not references.

  • When choosing an ArcGIS Online group to attach to the collaboration workspace, choose the Content group of the ArcGIS Hub Open Data site.
  • When choosing how hosted feature layers are sent to the collaboration workspace, choose to share as copies.
  • To share hosted feature layers as copies, the hosted feature layers must have sync enabled. If there is no option to enable sync from item settings on the hosted feature layer, follow these steps to prepare the data for offline use.
  • Invite the ArcGIS Enterprise organization as the guest organization.
  • From the ArcGIS Enterprise organization, accept the invitation to join the collaboration.
  • When choosing a Portal group to attach to the collaboration workspace, choose the group that contains the content you wish to share through ArcGIS Hub.
  • From ArcGIS Online, import the invitation response file to complete the collaboration.

After creating the collaboration, items in the group attached to the workspace in Portal are sent to the group attached to the workspace in ArcGIS Online. The items is then shared through the Content group to the Content Library of ArcGIS Hub. From ArcGIS Hub, hosted feature layers should be able to be downloaded successfully once the collaboration workspace has synced and the layers have been shared as copies.
You can also check by seeing if the Export Data option is available from the Item Details page of a feature layer in the Content group in ArcGIS Online.

Article ID:000026514

Software:
  • ArcGIS Online

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic