Skip to main content
Solved

syntax for <null>

  • July 13, 2022
  • 3 replies
  • 329 views

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

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.

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+46
  • 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

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.