When we create a Hosted Feature Layer View (hereafter referred to as a "View Layer") from our Hosted Feature Layer in ArcGIS Online, our View Layer schema is inherited from its parent Feature Layer.
Sometimes project design requires us to make schema changes to our parent Feature Layer and we want to be able to ensure that all dependent View Layers are inheriting the same changes. These might include:
ArcGIS Online (and ArcGIS Portal) users may run into unexpected issues where updates are not being reflected in their View layers. And it is important to understand how to manage this behaviour before overhauling the content, deleting the old view layers and creating new ones from scratch.
There are a few reasons why our View Layers might not be inheriting schema changes made to the parent Feature Layer and a few troubleshooting methods at our disposal to narrow down the cause of the disconnect...
First of all, we want to ensure that we're not trying to do something that is simply not possible in ArcGIS Online. View layers that participate in table Joins performed through Map Viewer will create schema-locks that prevent the parent Feature Layer's schema from being edited. We can read more about this here: Bring your data closer together: Save analysis results from Join Features as Hosted Feature Layer Vi...
"feature layers that participate in view layers with joins cannot have their schema altered and are always read-only and cannot be used offline."
Once we've clarified that. Let's work through the solution in the following two scenarios to narrow the issue down...
(Note: The following will cover troubleshooting View Layers that have been configured using the "Create View Layer" button on the Feature Layer's Item Details page.)
Solution: Update "Define Fields" for the View Layer
Resource: Problem: Hosted feature view does not inherit new field added to hosted feature service
Solution: If we have previously chosen to "Define an Area of Interest" for the View Layer... Delete it.
Limitation documented here: Considerations when creating hosted feature layer views
Solution: clicking on the "Reset to source" button to revert the view layer's field update property from "Overridden" to "Inherited".
Read more about the Settings that influence the "Inherited"/"Overridden" field property on View Layers here: Hosted feature layer view settings (edit, courtesy @Bnewell).
Note: In some cases, users will need to carry out a combination of the solutions outlined above to resolve all inheritance issues they are encountering.
Some key things to remember:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.