I am working with view layers in portal and ran across an issue where it seems that when a feature in the primary table is edited the feature and objectID is duplicated in the view layer. See the following:
Primary layer. Note that there are no duplicate objectIDs:
View layer. Note objectID 1930 is duplicated several times:
Additionally, if the view layer is brought into a web map the feature is only drawn once, however the duplicate features remain in the table:
Also, if I bring the service into ArcGIS Pro the duplicates do not appear either drawn in the map or in the table.
Any suggestions? I have attempted to rebuild the view layer without any change in behavior.
Thanks.
Hi Rachel,
Were you ever able to find a workaround for this? I was hoping to make my view non-editable (so I could pull it into a separate map), but if I understand this bug correctly that's pretty much impossible?
Thanks!
I didn't see anyone discuss this; so for what it is worth, it appears the duplicates are just showing you the full edit history. Kind of cool and also annoying. The last edit dates are unique. The first time you encounter a record in the attribute table that is the last or most recent edit. So if you create a new feature and submit it then edit that feature and resubmit, you would see two records in the table for the objectid. Depending on your point of view, this is either an "bug" or a "feature".
A colleague of mine tested the following scenarios with the "error" being the bug point of view.
Colleagues Comments:
I tested it on the view I created, and managed to prevent the error. Here are the steps I took in order: