Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
prma7799
Master III
Master III

Import file from folder

Hi All,

I have one folder and in that folder have multiple .txt files with same or different name and my user will create one or more file every day.

So what  I want is whatever user create file in that folder I need to automatically fetch and reload the files from that folder .


Folder Name is :"Test for txt"

and for file names please find the screenshot.


Thanks
Prashant

16 Replies
prma7799
Master III
Master III
Author

Untitled.png

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this using wildcard characters

LOAD

*

FROM *.txt (txt);

Hope this helps you.

Regards,

Jagan.

anbu1984
Master III
Master III

Source:

Load * From c:\Test for txt\*.txt

prma7799
Master III
Master III
Author

Error: File Exadata.cpp,Line 2897

prma7799
Master III
Master III
Author

error is resolve but only 7 file is come what about remaining files

Untitled1.png

anbu1984
Master III
Master III

Did remaining files appended to table Not4?

jagan
Luminary Alumni
Luminary Alumni

Hi,

Is all tables having different data? 

Try this

TableName:

LOAD

*,

FileName() AS FileName

FROM *.txt (txt);

Regards,

Jagan.

prma7799
Master III
Master III
Author

Hi,

If I fetching xlsx file (Load * From C:\Users\a185_o_bi2support\Desktop\Test for txt\*.xlsx; )

The output is not coming proper.

Untitled3.png

anbu1984
Master III
Master III

You can load excel file by clicking "Table Files" in Edit script and select the excel file you want to load which will automatically create the script for you

LOAD *

FROM

[Sample.xlsx]

(ooxml, embedded labels, table is TableName); //This is missing in your load statement