Free Trial

Alteryx Designer Desktop Discussions

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

Text Files without consistent width or delimiter

jackchoy
7 - Meteor

I've inherited some legacy txt files that I'd like to try and read into Alteryx.  The file doesn't have a delimiter between columns, and while there are defined column widths for each field, they're not standardized.

 

In Microsoft Access text import, there's an advanced setting that lets you define the width of individual columns on a column-by-column basis (e.g., Column 1 is first 5 characters, Column 2 is 6th-7th, etc.).  Is there anything similar in Alteryx?  I'm not seeing any options in Input Data or Text to Column.  I'd also like to avoid using RegEx if possible.

2 REPLIES 2
TimN
13 - Pulsar

 

Hi,

Yes.  Fixed Width columns can be set.

TimN_0-1667311158599.png

 

TimN_1-1667311192787.png

 

Sebastiaandb
12 - Quasar

Hi @jackchoy ,

 

When you drag your txt file onto the canvas you get the following prompt:

 

Sebastiaandb_0-1667311187910.png

 

 

Choose the option "Read it as a fixed width text file".

 

Then you'll be able to cut the file into multiple fields :-).

 

Sebastiaandb_2-1667311263356.png

Greetings,

 

Seb

 

 

Labels
Top Solution Authors