Skip to main content
Solved

syntax for <null>


townest
Contributor
Forum|alt.badge.img+4

What is the FME syntax required to assign a <null> value? Inputting <null> seems to return the string '<null>' and not a bonefide <null> (greyed out FME version). Some fields offer <null> in the drop down, but some do not and require the user to input, such as...

imageThank you.

Tyler

FME WorkBench 2021.0

Best answer by ebygomm

I wouldn't expect null to be possible there since partial replacements are possible, how would null be handled if only part of the string was selected to be replaced?

 

To replace with null you can use regex or string matching in the NullAttributeMapper, no need for a StringReplacer

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

3 replies

david_r
Celebrity
  • July 13, 2022

I agree that it doesn't seem possible to assign a null value there. The easiest is probably to use a NullAttributeMapper after the StringReplacer.


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • Best Answer
  • July 13, 2022

I wouldn't expect null to be possible there since partial replacements are possible, how would null be handled if only part of the string was selected to be replaced?

 

To replace with null you can use regex or string matching in the NullAttributeMapper, no need for a StringReplacer


townest
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • July 13, 2022
ebygomm wrote:

I wouldn't expect null to be possible there since partial replacements are possible, how would null be handled if only part of the string was selected to be replaced?

 

To replace with null you can use regex or string matching in the NullAttributeMapper, no need for a StringReplacer

Thx.


Reply


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