Skip to main content
Question

Issues adding field to ArcGIS Online feature layer.

  • September 23, 2020
  • 3 replies
  • 253 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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

oscard
Influencer
Forum|alt.badge.img+22
  • 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+22
  • Influencer
  • September 25, 2020

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.