Skip to main content
Question

Issues adding field to ArcGIS Online feature layer.

  • September 23, 2020
  • 3 replies
  • 205 views

damian6105
Participant
Forum|alt.badge.img

Hi, I've written a very simple FME script to add a field to a feature layer in ArcGIS online. When I run my FME file it say my translation was successful however, the field does not get added to my feature layer. I've tried both the 'INSERT' and 'UPDATE' options in my writer. 

 

I recieve the following warning message in my log:

 

"ArcGIS Online Feature Service Writer: Attribute 'MyField' on feature type 'MyFeatureLayer' does not match any field on the corresponding layer/table. The attribute will be ignored".

 

Does anyone know what I'm doing wrong? FME file attached.

 

Regards, Damian

3 replies

oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • September 24, 2020

The INSERT, UPDATE or DELETE is for rows, not columns.

 

If I'm not mistaken, it is not possible to use the ArcGIS Online Writer to add columns to a Feature Service. You will need to create the column in ArcGIS Online and then populate its values with FME.


damian6105
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • September 24, 2020

Thanks oscard, that's disappointing, however it does make sense. Maybe someone out there will think of a clever workaround.

Cheers, Damian


oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • September 25, 2020
damian6105 wrote:

Thanks oscard, that's disappointing, however it does make sense. Maybe someone out there will think of a clever workaround.

Cheers, Damian

If Python is an option, you could check if this API allows to add a field to the Feature Service: https://developers.arcgis.com/python/api-reference/index.html (I haven't found the method yet)

 

You could add a PythonCaller to create the fields before writing the features.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings