laptop and a wrench

Error

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.

Última publicación: April 22, 2021 ArcGIS API for Python
Número de ID del error BUG-000136846
EnviadoJanuary 19, 2021
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for Python
Versión encontrada1.8.3
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoWill Not Be Addressed

Información adicional

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.

Solución alternativa

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.

 

Pasos para reproducir

ID del error: BUG-000136846

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga