In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Help in Importing a batch txt file which inconsistent file format

sumaiyakhatun786
6 - Meteoroid

Hello Team,

I want to import set of file from a folder, where every week new file is added . the format of the file is as attached . 

.tx batch file has junk or log info above, then multiple data blocks that all start with
|SGrp||Submission| (i.e., the header line). When I am trying to import the file and its coming in one column , but the header are splitting into two columns .  here row 13 and 14 both are headers.  Also the following rows the data inputs are spliting into two as well.

sumaiyakhatun786_0-1761133209300.png

I want to import those set of files where data points are aligned under each header and no logs or specials char. I have just stared using alteryx so have not faced this kind of file before, any help will be apppreciated.

 

10 REPLIES 10
davidskaife
14 - Magnetar

Hi @sumaiyakhatun786 

 

What error are you getting with the second Macro, assume you have updated the input?

 

Regarding the second issue - you'll need to update the IF statement to accommodate this, so something like the below, please adjust accordingly

 

IF StartsWith([Field_1], '|Customer')
THEN 2
ELSEIF StartsWith([Field_1], '|')
THEN 1
ELSE 2
ENDIF

 the  

Labels
Top Solution Authors