Select to view content in your preferred language

Map Viewer - Layer "Save As" Behaviour

226
4
2 weeks ago
Labels (2)
AnthonyJonesRSK
Frequent Contributor

Hi,

We recently spotted that when selecting a layer in map viewer and using the "Save As" option the new layer that is created exhibits odd behaviour. Despite creating a new layer with a new ID this layer still seems to reference the layer it was saved from. As you can see from the test I did below we have a new item ID in the URL but the service itemid is the same as the old layer. This means that if you add data to the new layer it appears in the old layer. Is this the expected behaviour? It's not mentioned in the help page here. The wording suggests a new layer is created but it behaves more like a feature layer view or a layer file in Pro.

AnthonyJonesRSK_1-1776693272251.png

Thanks

Anthony

0 Kudos
4 Replies
NicoleJohnson
MVP

From that page:

If you duplicate an editable feature layer, the duplicate is also editable. Edits made to duplicates change the source data.

 

0 Kudos
AnthonyJonesRSK
Frequent Contributor

Thanks for the response @NicoleJohnson but that appears to be in reference to the duplicate option where you duplicate the same layer in the map.

0 Kudos
NicoleJohnson
MVP

Oh jeez, sorry about that! In any case, it's definitely the same behavior I've encountered before and would expect (where there's a new item without new data). It's the equivalent of going to the layer's item page visualization tab and clicking "save as."

For example, here's a layer that I filtered and symbolized differently from its source layer. I needed to use this layer in a bunch of maps, so I created a new item for it (rather than set those configurations in each map):

NicoleJohnson_0-1776699397563.png

 

Here's a related thread: https://community.esri.com/t5/arcgis-online-questions/quot-feature-layer-quot-is-connected-to-a-host...

0 Kudos
AnthonyJonesRSK
Frequent Contributor

No need to apologise, I appreciate your inputs. Thanks for that article link, that and this blog post my colleague found, which has the key text below do appear to confirm that this is expected behaviour. I just don't think it's very well documented in the help as this acts somewhere between a feature layer and a view and may catch some people out (it did for one of my colleagues) if they delete data from the "save as" layer not realising it is then removed from the original layer too. I'm actually intrigued to see if there are any other practical applications for this too instead of using a view. Cheers

AnthonyJonesRSK_0-1776704080067.png

 

0 Kudos