Skip to main content

AttributeTrimmer is trimming only 1 character (bug introduced with transformer version 4)


a.brunn
Participant
Forum|alt.badge.img

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

3 replies

DanAtSafe
Safer
Forum|alt.badge.img+17
  • Safer
  • May 23, 2024

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.


fhyde
Contributor
Forum|alt.badge.img+3
  • Contributor
  • August 15, 2024

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


DanAtSafe
Safer
Forum|alt.badge.img+17
  • Safer
  • August 16, 2024

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!


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