Skip to main content
Solved

Error using ArcGIS Online Feature Service Writer: Not overwriting feature data where already present

  • December 22, 2020
  • 7 replies
  • 206 views

johnk
Contributor
Forum|alt.badge.img+4
  • Contributor

Hi FME world,

 

I have a workspace which reads from and writes to several ArcGIS Online feature service layers. At some point, it has stopped updating the data within one of the layers. The workspace still runs successfully and writes features to the layer, but the data is not updated (where there were existing data present) when I check the written features. Where there are blank fields before, the update works as expected. So there is something to do with not being able to overwrite fields where data is already present.

The writer mode is set to UPDATE and there are only ever an X amount of features to update, so the OBJECTIDs never change.

 

Any ideas?

Thanks

Best answer by johnk

chrisatsafe wrote:

Are you seeing any errors/warnings in the translation log? If so, could you share the full message?

Hi @chrisatsafe​, I've managed to solve the issue using a NullAttributeMapper to convert the 'Missing' values of the selected attributes to 'Empty String' before routing to the AGOL Writer.

View original
Did this help you find an answer to your question?

7 replies

runneals
Contributor
Forum|alt.badge.img+20
  • Contributor
  • December 24, 2020

Does the data that you're trying to write fit into the defined data schema (type/length) of what is already existing in AGOL?


johnk
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • January 11, 2021

Hi @runneals​, yes I am using the defined data schema for this particular layer (creating the writer schema from the corresponding reader). Data is being written in, but only where is nothing already existing.


chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • January 11, 2021

Are you seeing any errors/warnings in the translation log? If so, could you share the full message?


johnk
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • Best Answer
  • January 11, 2021
chrisatsafe wrote:

Are you seeing any errors/warnings in the translation log? If so, could you share the full message?

Hi @chrisatsafe​, I've managed to solve the issue using a NullAttributeMapper to convert the 'Missing' values of the selected attributes to 'Empty String' before routing to the AGOL Writer.


chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • January 12, 2021
johnk wrote:

Hi @chrisatsafe​, I've managed to solve the issue using a NullAttributeMapper to convert the 'Missing' values of the selected attributes to 'Empty String' before routing to the AGOL Writer.

Excellent, thanks for following up to let us know you got it working!


vicviz04
Participant
Forum|alt.badge.img
  • Participant
  • July 28, 2021
johnk wrote:

Hi @chrisatsafe​, I've managed to solve the issue using a NullAttributeMapper to convert the 'Missing' values of the selected attributes to 'Empty String' before routing to the AGOL Writer.

hello @chrisatsafe​ , I ran across this post because I am having the same issue with the Esri Portal writer. I have an open ticket that I am waiting for response on. I have a workspace that that will execute, but the data does not actually update the hosted feature service polygons. Upon further digging, it will update about 18 of the 25 features if I filter out the other 7. And, conversely, it will update the 7 features, but only if I filter out the other 18. It's very very strange and seems to only happen with this particular data set. I even rebuilt the polygons from scratch today and still, the same problem


chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • July 29, 2021
johnk wrote:

Hi @chrisatsafe​, I've managed to solve the issue using a NullAttributeMapper to convert the 'Missing' values of the selected attributes to 'Empty String' before routing to the AGOL Writer.

Hi @vicviz04​ ,

Any indication of a warning or error in the translation log by any chance? That is really strange that it is isolated to those specific features (when writing the entire dataset). If you are able to share the workspace and sample dataset for this we'd love to take a closer look!

https://community.safe.com/s/submit-case/


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