Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I trying to load data from xlsx files that are sitting in a SharePoint directory, but getting an error during the load
I am using
for each file in filelist('lib://test_Space:Office_365_Sharepoint - Qlik/Shared Documents/testReports/*.xlsx')
LOAD
wh_id,
EXPORT_DATE,
client_code
FROM [$(file)] (ooxml, embedded labels);
next file
but I am getting an error
The following error occurred:
Connector error: Failed on attempt 1 to GET. (-2147024894, System.IO.FileNotFoundException, File Not Found.)
The error occurred here:
for each file in filelist('lib://eGold_Space:Office_365_Sharepoint - Qlik/Shared Documents/eGoldReports/*.xlsx')
I'm only getting the error when trying to load wildcard (*.xlsx) but if I am using a full name of one of the files in the directory it works
Thanks in advance
Hello,
Wildcar * doesn't work with cloud storage,
With Sharepoint, I think that you must use the Sharepoint meta data connector to get the list of the file in a table.
And then you loop over this table to load all files.
Here is a function you can use to concatenate all files in a folder (with same structure) in one table :