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.

TXT Input File - Alteryx keeps pulling over data to fill instead of filling with 0

vercimak
5 - Atom

How do I get it so that my txt files when they are delimited and data cleansed in Alteryx that they don't move the data over?

 

What's happening is that it is moving the fields to the right left to fill the empty spaces due to the data cleansing remove trailing/leading spaces but I need those blank spaces to stay so I can fill them with 0.

 

TXT input

vercimak_0-1681762696467.png

 

Original in Alteryx

vercimak_3-1681763468979.png

 

After Data Cleansing

vercimak_5-1681763507853.png

It's reading a lot of files so going in there manually to add the zero before it runs through is not ideal.

 

 

6 REPLIES 6
gautiergodard
13 - Pulsar

Hey @vercimak 

Try checking of the options below:

gautiergodard_0-1681764789743.png

 

vercimak
5 - Atom

It gave back the error "Too many fields in record #9"

 

gautiergodard
13 - Pulsar

@vercimak what is the delimiter?

Looks like from your screenshot it might be tab delimiter... if that's the case you need to update the delimiter from a comma (",") to a tab ("\t") in the delimiter row of the input file.

vercimak
5 - Atom

@gautiergodard 

I updated to the delimiter /t and it ran with no error but it still results in the same problem

vercimak_0-1681766609523.png

 

gautiergodard
13 - Pulsar

Are you able to use a text to columns tool to parse further ?

 

Try using \s as the delimiter.

vercimak
5 - Atom

Yes it was already originally used to parse the data to original form but when done again it just outputs the same

vercimak_0-1681827137871.png

 

Labels
Top Solution Authors