Skip to main content

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

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.


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

Cheers, Damian


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.


Reply