laptop and a wrench

Bogue

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.

Dernière publication: April 22, 2021 ArcGIS API for Python
Numéro d’ID de bogue BUG-000136846
EnvoiJanuary 19, 2021
Dernière modificationJune 5, 2024
S’applique àArcGIS API for Python
Version trouvée1.8.3
Système d’exploitationWindows OS
Version du système d’exploitation10.0
StatutWill Not Be Addressed

Informations supplémentaires

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.

Solution de contournement

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.

 

Étapes pour reproduire

ID de bogue: BUG-000136846

Logiciel:

  • ArcGIS API for Python

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement