arcgis-python-api
arcgis-python-api copied to clipboard
FeatureLayerCollection.manager.create_view() does not correctly handle the view_layers parameter(?)
I am developing scripts to manage views in Online Portal.
I use the create_view() method and give it a value for the view_layers parameter.
It creates the view, but hits an error when I try to open the view in the Map Viewer or view the Data/Fields on the item page.
Note that the URL is looking for layer ID 3 in the view that I just created "Sanitary_Pipes_View", but the ID=3 refers to layer ID in the parent hosted feature layer, from which I created the view
- OS: Windows 11
- Browser: Chrome
- Python API Version: 2.2.0.1
Also, it looks like the view automatically inherits the tags of the parent hosted feature layer, but they are not fully parsed:
@avstjohn Are you able to open the layer in the original parent? I am unable to reproduce this so I wonder if it is specific to the layer.
Does this also occur for your first view you create: "Sanitary Structures View"?
This has been fixed for version 2.3.0