We have a wish to add a field to a hosted feature layer, but the option does not appear in an ArcGIS Online web map or the item's Data or Field pages for this item. When attempting to add the field in ArcGIS Pro, it also fails, with error 000852 given.
The hosted feature service was created from publishing a Survey123 form. In order to handle repeats, it contains a 'parent' feature layer, several 'repeat' feature layers and a 'repeat' table. There have been a number of views created from this feature service for web map and ops dashboard purposes, but it is a layer in the original hosted feature service that the additional field is required for, i.e. not a copy or view. Given all of these existing views and the established link to a Survey123 form, I would be reluctant to create and publish a new feature service.
Can anyone suggest what the problem might be?
As I say, it is not a copy and nor does it have related tile layers, both of which are listed here as being restrictions to adding or deleting a field. I came across this post with a similar problem, but our situation is not connected to the Election Management solution mentioned.
Thanks for any insight.
Hi @K_Rocks ,
The first thing that comes to mind when you can't see a button on AGOL is lack of permissions.
Thanks for the reply. Neither the admin or dataset owner can add a field. The dataset has been in use for data collection by multiple organisation members since last summer and there has been no problem adding features or correcting entries, so it doesn't seem to be a permissions issue.
I am currently experiencing this. I am trying to add a field to a hosted Table. No relates, or parent layers, just a table. The table was not originally published with Survery123, but was then hooked into a Survey through Connect. I also have a View Layer established via an AGOL Join.
I'm an admin and the Table has editing enabled. I don't see the option I normally would to add a field directly in AGOL:
So I tried in Pro 2.7 and got Error 000852: Cannot add field <value> to <value> which mentions read only data or lock issues, but neither of those apply.
Here for any insight as well.
Ran into a similar issue. I was able to add columns from the Map Viewer's Attribute Table (for simple data types), and also by using the arcgis.features.managers.FeatureLayerManager.add_to_definition() python function (for more advanced data types like GUIDs).
I could never get the "Add Field" button to appear, though.