laptop and a wrench

Error

When creating hosted feature layer views through the ArcGIS API for Python using the create_view() function, the REST URL spaces are encoded differently than when a view is created using the Create View Layer tool in ArcGIS Online.

ArcGIS API for Python
Número de ID del error BUG-000163050
EnviadoNovember 17, 2023
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for Python
Versión encontrada2.1.1
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoAs Designed

Información adicional

Layer views cannot contain spaces in the name. Underscores included in the name are kept. For example, the view can be named, 'US_Points_with_lat_long' and the view is created as expected. If the view name is, 'US Points_with_lat_long', the value contains a space in the name, which causes the issue. To automate the process, use the Python built-in replace function to replace spaces with `_`.

Solución alternativa

Include underscores in the Python code when naming the created view layer.

Pasos para reproducir

ID del error: BUG-000163050

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