Skip to main content
Solved

AttributeConcatenator whitespace is ignored?


connecter
Participant
Forum|alt.badge.img+10

Hi,

is it a bug, that whitespace is removed in the next step (Parameter Fetcher) in the AttributeConcatenator? In the userparameters the space is still their and the parameter is not checked.

Best answer by nampreetatsafe

Hi @connecter​! I see what you mean and managed to replicate it using the AttributeConcatenator. Have you tried using the StringConcatenator transformer instead? See attached workspace for a quick demo.

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

4 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+38

Hmm from your question is isn't quite clear where the problem is. Did you use a ParameterFetcher transformer which was fine? But the AttributeCon​catonater caused an issue? Could you include a couple more screen shots?


connecter
Participant
Forum|alt.badge.img+10
  • Author
  • Participant
  • March 23, 2021
virtualcitymatt wrote:

Hmm from your question is isn't quite clear where the problem is. Did you use a ParameterFetcher transformer which was fine? But the AttributeCon​catonater caused an issue? Could you include a couple more screen shots?

Hi @virtualcitymatt​ ,

thank you for your answer.

The custom transformer is from @Takashi Iijima​ and the user parameter in the screenshot are passed into the ParameterFetcher. However, there is the space missing afterwards.

 

I will include more screenshots tomorrow @work.


nampreetatsafe
Safer
Forum|alt.badge.img+13

Hi @connecter​! I see what you mean and managed to replicate it using the AttributeConcatenator. Have you tried using the StringConcatenator transformer instead? See attached workspace for a quick demo.


connecter
Participant
Forum|alt.badge.img+10
  • Author
  • Participant
  • March 26, 2021
nampreetatsafe wrote:

Hi @connecter​! I see what you mean and managed to replicate it using the AttributeConcatenator. Have you tried using the StringConcatenator transformer instead? See attached workspace for a quick demo.

Hi @nampreetatsafe​,

thank you for your reply and your demo workflow. The StringConcatenator is great when every column includes data, otherwise this happens:

The AttriubteConcatenator have the option to "Drop Empty Parts".

In the AttributeConcatenator a Attributecreator after the ParameterFetcher can replace the wrong string. Maybe in a future release the AttributeConcatenator can handle space strings.


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