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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load information only if the file exist?

Dear All:

I am a Beginner in QLikview. I am using Qlikview 8.5 to write a report.

Here is the part of Qlikview script to load the QVD from corresponding directory:

/------------------------------------------------------------------------

File ='RCHSTOCK'& extract_date &'.qvd(qvd)';
LOAD * FROM QVD\test\$(File);

/--------------------------------------------------------------------

I would like to add some script to check if the corresponding QVD is exist before loading.

If QVD do not exist, then quit the script

Any people could help? Thank you!

From

Neo

1 Reply
prieper
Master II
Master II

You may either construct a loop around FILELIST or check whether

QvdNoOfRecords ( filename )

delivers more than 0 records.

HTH
Peter