Skip to main content
Question

Update sharepoint list

  • May 31, 2018
  • 8 replies
  • 116 views

owen
Forum|alt.badge.img+1

Hi FME fans,

I am using the MS Sharepoint List writer to update values - this is using Feature Operation 'Update' using Row Selection 'sharepoint item id'.

This works fine when I give it a new value, eg a different date, however if I set the value to null in FME the value in sharepoint doesnot change. How can I set the value to null?

Thanks,

Owen

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.

8 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • May 31, 2018
Hi Owen, this sounds logical since a null value will not be found in the item id, or am I missing something?

 

 


owen
Forum|alt.badge.img+1
  • Author
  • May 31, 2018
Hi Owen, this sounds logical since a null value will not be found in the item id, or am I missing something?

 

 

Hi Itay, no this isnt updating the item id, but other attributes. Basically I want to clear these attributes out, not update them but setting the values to null doesnt trigger any change

 

 


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • May 31, 2018
Hi Itay, no this isnt updating the item id, but other attributes. Basically I want to clear these attributes out, not update them but setting the values to null doesnt trigger any change

 

 

Any chance 'missing' or empty values work better?

 

 


lars_de_vries
Forum|alt.badge.img+10

Can it be that the date field is an obligatory field and that null-values aren't accepted?


owen
Forum|alt.badge.img+1
  • Author
  • June 5, 2018
Any chance 'missing' or empty values work better?

 

 

No, joy with missing or empty values

 

 


owen
Forum|alt.badge.img+1
  • Author
  • June 5, 2018

Can it be that the date field is an obligatory field and that null-values aren't accepted?

Hi Lars, thanks but no it can have blank/null values in the field

 

 


erivero
Participant
Forum|alt.badge.img+2
  • Participant
  • March 23, 2023

@owen​ did you ever find a solution? I'm facing the same issue


bellalistair
Participant
Forum|alt.badge.img+1
  • Participant
  • October 17, 2024

After a few abortive attempts at ever more complex solutions to this precise problem (SharePoint list value needing to be cleared as an update) I have found a solution, at least for single line text fields.

Use a NullAttributeMapper to map null to a carriage return

The Writer then has “something” to write and so does include that in the JSON payload, but SharePoint ignores it since it isn’t valid.

No help for multiline fields of course but hopefully helpful.

Why it took me so long to think of this I don’t know, I’d tried mapping empty strings and all sorts of custom writers, but the simple solutions are the best.