laptop and a wrench

漏洞

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
漏洞 ID 编号 BUG-000163050
已提交November 17, 2023
上次修改时间June 5, 2024
适用范围ArcGIS API for Python
找到的版本2.1.1
操作系统Windows OS
操作系统版本10.0 64 Bit
状态As Designed

附加信息

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

解决办法

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

重现步骤

漏洞 ID: BUG-000163050

软件:

  • ArcGIS API for Python

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项