File geodatabases now support views (which is great), but the views can't have domains applied to them (this should be fixed). If I have a view that pulls out a subset of data from a table and that table has domains applied to it, I should be able to apply those same domains to the file geodatabase view of the data subset, but this can't be done. It makes (some) sense that views aren't editable, but since they are registered with the geodatabase I can't think of any reason why allowing domains to be applied to them shouldn't be possible.
ArcGIS Pro 3.3.1
To my surprise, I was able to reproduce your results.
Questions:
@SSWoodward - When doing a select * query, some/most of the domains (and aliases) from the underlying feature class come across in the view. But if specific fields are selected (i.e. some subset of fields from the source table/feature class) or some fields are modified (i.e. the view might contain a calculated field that's a metric conversion of data that's stored in feet in the source table) it seems to cause some of the columns (that aren't modified) from the source data not to have their aliases and domains applied to the view. Additionally, pulling the domain information from the source table/feature class is a good "first-cut" since often that will be the desired result, there could be instances where needing to apply a different domain is needed. One example might be a view that is a union of two tables, where the resulting domain that might need to be applied to a column might not belong to either of the source tables, but might be a third/different domain. The ideal solution here would be to allow the user to create/modify which domains are applied to which fields in a database view (although the "default" of just using the domain from a single source table is is good start).
Regarding Esri Case #03702306 - Registering FGDB database view with geodatabase removes domain from the view
I uncovered a side issue in that case:
"I noticed an issue that happens even before the register with geodatabase step. If the underlying feature class is not already added to the Contents, then when I add an unregistered view to the Contents, the domain won't be honored. That seems like a bug too."
Thanks @SSWoodward. I updated my earlier comment to include bug numbers and ENH numbers: https://community.esri.com/t5/arcgis-pro-ideas/file-geodatabase-views-should-support-domains/idc-p/1... All three Support cases are now closed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.