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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
ArjunPrasad
Contributor III
Contributor III

Script error while loading multiple files

HI All,

 

i am trying to load multiple excel sheets using for each loop . but giving error like below

what is the issue not able to figure out.

ArjunPrasad_0-1602582016763.png

PFB script

For each vFile in FileList ('lib://Files/*.xlsx')
CountrySales:
LOAD *,
Left(Source,3) as Month;
Load
Country,
Sales,
Filebasename() as Source
from [$(vFile)]
(ooxml, embedded labels, table is Sheet1);
Next vFile;

Can you suggest me the solution.

Thanks

Arjun

Labels (1)
1 Reply