arcgis-python-api icon indicating copy to clipboard operation
arcgis-python-api copied to clipboard

FeatureLayerCollection.manager.create_view() does not correctly handle the view_layers parameter(?)

Open avstjohn opened this issue 1 year ago • 2 comments
trafficstars

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. image

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. image

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 image

  • OS: Windows 11
  • Browser: Chrome
  • Python API Version: 2.2.0.1

avstjohn avatar Jan 17 '24 19:01 avstjohn

Also, it looks like the view automatically inherits the tags of the parent hosted feature layer, but they are not fully parsed: image

avstjohn avatar Jan 17 '24 20:01 avstjohn

@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"?

nanaeaubry avatar Jan 18 '24 09:01 nanaeaubry

This has been fixed for version 2.3.0

nanaeaubry avatar May 13 '24 10:05 nanaeaubry