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.

First row from multiple txt files

jademcmanus
5 - Atom

I have 360 files I need just the first row from. I'd like to get them into SQL or a txt file and load that into SQL. 

4 REPLIES 4
DavidP
17 - Castor
17 - Castor

You can set the record limit to 1 in option 1 of the input data tool and load them with a wildcard option (*.txt) in the file path specification.

robertporternz
8 - Asteroid

Hi there, I tried this approach and it was only bring back 1 record and stopping after the first file, is there a way to make this persist across all files that are using the wildcard option specs?

ddiesel
13 - Pulsar
13 - Pulsar

Hi @robertporternz!

 

Here's something you can try:

 

Capture.JPG

 

Tips:

* In the Directory tool, be sure to specify the file type (i.e. txt)

* You can place a filter tool between the Directory and Dynamic Input if there is a specific file name schema

* Chose a "trainer" file in the Dynamic Input tool and set the record limit to 1

 

Hope this helps!

 

Deb

 

robertporternz
8 - Asteroid

Totally thanks so much that was really helpful @ddiesel 

Labels
Top Solution Authors