Add Field not available for feature layer

718
4
01-13-2021 06:32 AM
Labels (2)
K_Rocks
New Contributor III

Hi all,

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.

4 Replies
UriGilad_EsriAu
Esri Contributor

Hi @K_Rocks ,

The first thing that comes to mind when you can't see a button on AGOL is lack of permissions.

If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
0 Kudos
K_Rocks
New Contributor III

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.

0 Kudos
BrittanyBurson
Occasional Contributor III

Hi @K_Rocks (edit: and @UriGilad_EsriAu)  --

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: 

BrittanyBurson_0-1611336469926.png

 

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.

0 Kudos
jcarlson
MVP Frequent Contributor

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.

- Josh Carlson
Kendall County GIS