Skip to main content
Question

Update sharepoint list


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

8 replies

itay
Supporter
Forum|alt.badge.img+17
  • 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
itay wrote:
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+17
  • Supporter
  • May 31, 2018
owen wrote:
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
itay wrote:
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
lars_de_vries wrote:

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.


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