Alteryx Designer Desktop Discussions

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

Adding file name / file path to each record

Naviii
5 - Atom

Hi Team,

I just need help in adding file name/file path to each record,

  • where I’m using the wildcard to read multiple files in a folder.
  • I want the file name/file path to be added to each row of the data from which the file is being read.
4 REPLIES 4
Luke_C
17 - Castor

Hi @Naviii 

 

The input tool has a configuration for this.

Luke_C_0-1658423959033.png

 

 

Emmanuel_G
13 - Pulsar

Hi @Naviii ,

 

Find attached a test where fullpath is extracted for each line of file.

 

Just select Full Path on line 5 - Output File Name as field.

 

Cheers !

Emmanuel_G_0-1658424428035.png

 

Naviii
5 - Atom

Hi @Luke_C and Emmanuel_G 

 

I agree , but I'm using the wildcard "*" to read the multiple files and also a batch macro since the files has a different schema .

 

Naviii_2-1658425010111.pngNaviii_0-1658424968147.png

 

 

Naviii_1-1658424992337.png

 

Luke_C
17 - Castor

It should still work. If it's not you probably need to set the same configuration in the input tool present in your batch macro.

Labels