We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

PadRight without Delimiter?

rockeylearning
8 - Asteroid

Hi Community!

 

I built over 100 fields with fixed length in Alteryx workflow, and the output is a .txt file, how do I output it to where these fields are closed together without the tab or space delimiter?

 

For example, Field A length is 8, Field B length is 3,

the output in the .txt should be:

12345678ABC

 

I may be able to use concatenate but I don't know if that the right approach, and beside, since there are a lot of fields, concatenate will become a long string.

8 REPLIES 8
Luke_C
17 - Castor
17 - Castor

Hi @rockeylearning 

 

Try using \0  as the delimiter when you configure the output tool. This is the syntax to indicate no delimiter. 

 

Edited for correct syntax

caltang
17 - Castor
17 - Castor

Perhaps if you can, kindly provide some raw data and we can show you. Otherwise it may not answer your need properly.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Peachyco
11 - Bolide

According to this post, Alteryx string fields can take about 2 billion characters. It's pretty hard to even come close to that limit - concatenating 200 fields with 100 characters each only comes up to 20,000 characters. So, concatenating your string fields and then saving only that concatenated field in the text file might still be a sound solution.

 

Here's a sample workflow:

Alteryx screenshot.png

 

Here's the text file:

Alteryx screenshot.png

Peachyco
11 - Bolide

@Luke_C 

If I'm not mistaken, the delimiter "\n" is for a new line, which would put each cell in its own row. That's how my CSV is coming out when I use this delimiter.

Alteryx screenshot.png

Luke_C
17 - Castor
17 - Castor

Hi @Peachyco you're right! I meant to put \0. Good catch

Peachyco
11 - Bolide

@Luke_C 

Ah, I didn't know about the "\0" delimiter. Learned something new today, thanks! ^_^

 

And it works even better than my convoluted workflow. Very straightforward:

Alteryx screenshot.png

rockeylearning
8 - Asteroid

@Luke_C that's worked! Thank you!

Luke_C
17 - Castor
17 - Castor

@rockeylearning Great, happy to help. Remember to mark the solution 😁

Labels
Top Solution Authors