Bug ID Number |
BUG-000163050 |
Submitted | November 17, 2023 |
Last Modified | June 5, 2024 |
Applies to | ArcGIS API for Python |
Version found | 2.1.1 |
Operating System | Windows OS |
Operating System Version | 10.0 64 Bit |
Status | As Designed
After review by the development team, it has been determined that this behavior is as designed. See the Additional Information section for details.
|
Additional Information
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 `_`.
Workaround
Include underscores in the Python code when naming the created view layer.
Steps to Reproduce