Here is the code snippet:
I have a table, that contains the new filenames, called 'tmp_Increment_base'
the vMaxRownum variable contains the number of new files.
//Load the new files
If vMaxRowNum>0 then
For iternum = 0 to $(vMaxRowNum)-1
let File = peek('Filename_base',$(iternum),'tmp_Increment_base');
let adatDT = peek('adatdt_base',$(iternum),'tmp_Increment_base');
(ooxml, embedded labels, table is Sheet);
//Read the old files, stored in qvd
//ErrorMode = 0, if the file doesn't exist it still OK
set ErrorMode = 0;
FROM [lib://$(FolderAlias)/old_files.qvd] (qvd);
STORE data INTO 'lib://$(FolderAlias)/old_files.qvd' (qvd);
set ErrorMode = 1;
Output: The following error occurred: Cannot open file (at old_files.qvd)
If I try load the old_files.qvd I get the following message: Unsupported file format.
I have an other application, with same logic, it works well, I think only it has limitation of size or other at qvd.
Or at filesystem on server...