Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
JustinM
Contributor III
Contributor III

Load multiple files with criteria from folder

Hi

I'm trying to load a number of files (Not all) from a folder but I'm doing something wrong as it is not loading. My script is:

 

for each ClaimsRegister in filelist('lib:/Folder/Monthly/Claims Register*.xlsx')


[Claims Register]:

LOAD

......

FROM [$(ClaimsRegister)]
(ooxml, embedded labels);

next ClaimsRegister

Labels (1)
4 Replies
neerajthakur
Creator III
Creator III

Please share error screenshot to understand it better.

Thanks & Regards,
Please Accepts as Solution if it solves your query.
JustinM
Contributor III
Contributor III
Author

Hi

It doesn't show an error. It just runs and completes the load whilst ignoring this load.

Thanks 

neerajthakur
Creator III
Creator III

Check file name is it correct? Use lib://Folder/Monthly/Claims Register*.xlsx

Thanks & Regards,
Please Accepts as Solution if it solves your query.
NadiaB
Support
Support

Hi @JustinM 

It looks like a forward slash is missing instead of lib:/something, it should be lib://something

Our documentation has some examples that could help, section "Example 2: Creating a list of files on disk"

https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptCont...

Hope it helps!

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm