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.

Zuletzt veröffentlicht: April 22, 2021 ArcGIS API for Python
Bug-ID-Nummer BUG-000136846
EingereichtJanuary 19, 2021
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for Python
Gefunden in Version1.8.3
BetriebssystemWindows OS
Betriebssystemversion10.0
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

 

Schritte zur Reproduzierung

Bug-ID: BUG-000136846

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln