laptop and a wrench

Bug

The clone_items() function fails and returns the error message, "User does not have permissions to access this service." when attempting to clone a public hosted feature layer view hosted by another organization.

Last Published: April 22, 2021 ArcGIS API for Python
Bug ID Number BUG-000136846
SubmittedJanuary 19, 2021
Last ModifiedOctober 24, 2023
Applies toArcGIS API for Python
Version found1.8.3
Operating SystemWindows OS
Operating System Version10.0
StatusWill Not Be Addressed

Additional Information

This is expected behavior. The clone_items() method requires a feature service definition. In this scenario, the JSON of the feature service cannot be obtained because the admin endpoint cannot be accessed.

Workaround

If the underlying hosted feature service is public and the purpose of the view is setting styles or filters:

  1. In the target organization, on the Content tab, click Add Item > From a URL.
  2. Use REST URL of the underlying hosted feature service.
  3. Navigate to the item details page for the item, and click the Visualization tab.
  4. Apply the desired styles or filters.
  5. Click Save As New Layer.
  6. Replace the views of the items to be cloned with the new reference layer.

 

Steps to Reproduce

Bug ID: BUG-000136846

Software:

  • ArcGIS API for Python

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic