Skip to main content

Hi,

the AttributeTrimmer transformer does no longer trim correctly after updating from transformer version 3 to version 4.

In my workspace I use the AttributeTrimmer to strip whitespaces from attributes. This used to work as intended and as described in documentation. It stripped all whitespace characters from the attributes, regardless how many there are. 

Recently I upgraded this transformer from version 3 to version 4. The new version works differently after that. Now it strips only 1 whitespace. When there are more of them at the beginning or end of the attribute the rest of them is left untouched (i.e. if there were 3 whitespaces at the end of a string entering the transformer, the result still has 2 whitespaces at the end).

This seems to be not working as intended and described in documentation and should be changed in a future version. I use this transformer a lot to clean up attributes for comparison.

Can someone else confirm this problem?

Kind regards,
Andras

Hi Andras, I’ve filed FMEFORM-31213 about this.  Thanks for bringing this to our attention.  The work-around is to specify a space as the trim character.


It appears that even by specifying white space that this is still not functioning.  (FME 2024.1.0.0 (20240628 - Build 24612 - WIN64)


Hi @fhyde, I don’t see an issue with white spaces when testing build 24619. If you still see a problem, please submit a case at https://support.safe.com/hc/en-us/p/Support Thanks!


Reply