Alteryx Designer Desktop Discussions

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

Parsing file had iterative rows as a record

Saraabdi955
8 - Asteroid

Hi everyone,

I have a log file (attached) that every record was placed in three lines.

How can I parse a file like this?

 

 

3 REPLIES 3
Felipe_Ribeir0
16 - Nebula

Hi @Saraabdi955 

 

Here is a way of doing this:

Felipe_Ribeir0_0-1664367917875.png

 



If the provided answer helped you to solve the problem/was correct, please accept it as a solution :)

 

Thanks.

 

Saraabdi955
8 - Asteroid

@Felipe_Ribeir0 

Thanks,

Please give me a short description of what you do.

Felipe_Ribeir0
16 - Nebula

Hi @Saraabdi955 

 

1) I configured the input as .flat without parsing the data directly with the input tool. If you take a look at your data, because of the {C2}, and APPID rows, these rows dont have "," to parse, so because of this, you would receive error messages if you tried to parse the file with the input tool.

 

Felipe_Ribeir0_0-1664368804317.png

 

2)After that, i used the text to columns configured to parse the field with ",". I manually selected the number of columns (5 columns) to parse based on the data.

 

Felipe_Ribeir0_1-1664368894509.png

 

3)I used the filter tool to remove the unwanted rows

 

Felipe_Ribeir0_2-1664368910386.png

4)I used the dynamic rename tool to take the field name from the first row.

 

Felipe_Ribeir0_3-1664368944440.png

 

If you have any specific doubts, just send it here!

Labels