Solved

StringReplacer behaves differently on different columns

  • 7 February 2022
  • 2 replies
  • 1 view

Hello,

The following settings of the StringReplacer works for some feature attributes, and doesn't work for others.

This is aimed to replace dots for commas (or vice-versa) in a decimal number.

So, it normally works for example like 100.5 -> 100,5

But, I just used the very same transformer in a different feature, and the result is zero, for example: 100.5 -> 0

string-replacer-0Both columns are 64-bit real. I can see in the the "cached features" in Data Inspector that a valid decimal number goes in, and out goes the zero.

Any ideas?

Thanks in advance

icon

Best answer by ebygomm 7 February 2022, 18:06

View original

2 replies

Userlevel 1
Badge +21

Are there any warnings in the log file?

 

Does the same error persist if you hardcode the Text To Replace and Replacment Text rather than using parameters?

I'm sorry, my bad - works perfectly. I don't know what I was looking at, I guess another feature. Sorry again!

Reply