laptop and a wrench

Bogue

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
Numéro d’ID de bogue BUG-000163050
EnvoiNovember 17, 2023
Dernière modificationJune 5, 2024
S’applique àArcGIS API for Python
Version trouvée2.1.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutAs Designed

Informations supplémentaires

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 `_`.

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000163050

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