Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Wildcard Path in File Input

Cat3
5 - Atom

I am using "Input Data" for data input. The file path should be variable. I tried to make wildcard file path, it got "File not found" error. Can anyone please help?

 

My wildcard file path:

C:\web_log\*_2018\07\*access.log (Got "File not found" error)

 

Example of the file path:

C:\web_log\web_2018\07\01_access.log

C:\web_log\web_2018\07\02_access.log

C:\web_log\event_2018\07\01_access.log

C:\web_log\event_2018\07\02_access.log

3 REPLIES 3
seinchyiwoo
Alteryx Alumni (Retired)

Hey,

 

Wildcard will only work for filename currently.

Have you tried retrieving all the path using Directory tool first then batch read them in using Dynamic Input?

Something that works like this:

1. Use Directory to retrieve all the paths:

seinchyiwoo_0-1594701734441.png

2. Then use Dynamic Input to read a list of data sources:

seinchyiwoo_1-1594701785213.png

Note that you will need to first point "Input Data Source Template" to one of your file to make it work.

 

Hope this helps.

Seinchyi

cmcclellan
13 - Pulsar

I would do this .... 

 

In your Input Data, choose a single file and format the tool to the settings you want.

 

After that, change the file spec in the tool to :   C:\web_log\*access.log

Enable "Search SubDirs"

Change "Output File Name as Field" to Full Path

 

grazitti_sapna
17 - Castor

Hi @Cat3 , try using two input tool with the following path
C:\web_log\web_2018\07\*_access.log

C:\web_log\event_2018\07\*_access.log

 

This might work for you as you cannot use wildcard for directory.

Thanks.

Sapna Gupta
Labels
Top Solution Authors