Skip to main content
Solved

AttributeConcatenator whitespace is ignored?

  • March 23, 2021
  • 4 replies
  • 23 views

connecter
Contributor
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.

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.

4 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • March 23, 2021

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
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • 72 replies
  • March 23, 2021

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
  • Safer
  • 383 replies
  • Best Answer
  • March 25, 2021

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
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • 72 replies
  • March 26, 2021

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.