Description
In the ArcGIS Enterprise portal, sharing a GPX file uploaded through ArcGIS REST API returns the following error message:
Error:
Failed to update sharing.
When the GPX file is shared using the ArcGIS Portal Directory, the following error message is returned:
Error:
This type of item cannot be shared.
Error: 400
Cause
A GPX file is not a supported shareable item type in the ArcGIS Enterprise portal. As a result, although the file can be uploaded through ArcGIS REST API, the portal prevents the item from being shared.
Solution or Workaround
Convert GPX data to features in ArcGIS Pro and share the feature layer with the organization
- Convert GPX data to features in ArcGIS Pro.
- Open the ArcGIS Pro project and click Project > Portals.
- Log in and set as the active portal.
- Click the back
icon. - Repeat Steps 2 through 4 in FAQ: Can GPX files be opened in ArcGIS Pro? In this example, Output Feature class is specified as Test_GPX_Out, and for Output Type, Points is selected.
- Share the feature layer to the ArcGIS Enterprise portal. In this example, Name is specified as Test_GPX, and for Sharing Level, Organization is selected.
- Ensure the sharing level is retained in ArcGIS Online.
- Sign in to ArcGIS Online and navigate to Content > My content.
- On the My content tab, select the hosted feature layer to open the item page.
- On the item page, navigate to Sharing.
The item is successfully shared with the organization.