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.

Issue with converting .txt file to Excel

Wags5
5 - Atom

Hello community!

 

I am looking to see if someone can help me with a project I am trying to create which converts a .txt file into a simple excel file with 7 columns of information. I am running into an issue where the project will sometimes pull rows from the .txt file that I thought my other preparation tools were filtering for. This file changes month to month in output length but is pretty consistent but I noticed my project might work for one month but then pull rows it shouldn't for other months. 

 

Want to see if anyone can help me better my project or let me know what from my project is hindering it from outputting exactly what I need.

 

I have attached the test text file, the project I'm using, and a file with how the project should look if outputted correctly.

 

(Also if at all possible, is there a way to not have to delimit the text file every time? When I input the text file I always have to manually input the delimited lines so my project knows what columns I want. Is there a better way of doing this where I can just input a new months file and the project already know what columns I need?)

 

Thank you for any help!

3 REPLIES 3
binuacs
21 - Polaris

@Wags5 one way of doing this

image.png

Wags5
5 - Atom

Hi Binuacs,

 

Thank you for the workflow idea. I was able to get it to work after some time but when I go to output the file as an excel it loses all its formatting shown in your example. Also being that it is not an exact match to the correct file, I do not believe I will be able to use this.

 

Using the workflow I attached, would there be a way to at least have the numbers in the Debit, Credit, Debit_Accrual, and Credit_Accrual columns be formatted as Numbers in Excel so I wont have to manually open the file and do it?

binuacs
21 - Polaris

@Wags5 updated workflow attached

image.png

Labels
Top Solution Authors