Hi Brains trust. I've been experimenting and was hoping to get confirmation from those in-the-know.
If have a Feature Service in ArcGIS Online which for example uses WGS 84 Web Mercator aux sphere (WKID 102100/3857) and (via Pro) you overwrite this with a new version that uses a different spatial reference (e.g. GDA94 (WKID 4283)), it appears that the spatial reference updates ok.
HOWEVER, if that layer has hosted views, it doesn't appear that those update to reflect those changes (at least, not according to the JSON when viewed through the Service URL).
In ArcGIS Pro, the layers both show up as using the updated spatial reference.
Is this a problem? Is this something that can be done and the differences in the JSON ignored? Or is it (as I suspect) going to cause me headaches down the track?
Well, so far it all seems to be happy enough with the updated coordinate systems. Views still showing the original in ArcGIS Online's metadata, but they display correctly when loaded into Pro so thats what matters.
I am having the same issue! Except I am trying to use the view in a web app, not Pro, and it is identifying the incorrect WKID for the view... I think when the view is created, the service settings are established (such as default symbology and extent and WKID) and even if the underlying service is modified, the view service settings remain untouched until the view is totally recreated, likely by design unfortunately. I will open an Esri support ticket and investigate then report back.
I am experiencing the same issue, do either of you have an update? I also notice the views Initial and Full Extent do not update to the overwritten information as well. I tried using ArcGIS Online Assistant to update the Spatial Reference code in the JSON, that update was not reflect in the ArcGIS REST Services Directory for the view. I also tried to "Update Definition" in the ArcGIS REST Services Directory Admin page with no success. I would hate to have to recreate the view and repoint my maps/apps to said new view.
I logged a bug with Esri Support - https://my.esri.com/#/support/bugs/bugs?bugNumber=BUG-000181599
I was assured that the rest api shows one WKID, while in reality the data is in what is shown in the new one (what is shown when adding the layer to Pro). So the spatial reference is updated while the REST API is wrong.