Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to know if a qdv exist?

Hello there!

Anybody know how can I ask in a script if a file (qvd) exist?

Thanks a lot!!

regards.

1 Solution

Accepted Solutions
martin59
Specialist II
Specialist II

Hi,

You can try with that :

IF FileSize('MyTable.qvd') > 0 THEN
SET QVD_EXISTS=1; // true
ELSE
SET QVD_EXISTS=0; // false
END IF


View solution in original post

5 Replies
martin59
Specialist II
Specialist II

Hi,

You can try with that :

IF FileSize('MyTable.qvd') > 0 THEN
SET QVD_EXISTS=1; // true
ELSE
SET QVD_EXISTS=0; // false
END IF


Not applicable
Author

If you are talking about in a QV script we tend to use

QvdCreateTime

('$(cFileName)') >= 0





Not applicable
Author

It's working well.

Thanks again.

hector
Specialist
Specialist

Hi, also works QvdNoOfRecords(qvdfile.qvd)

if is null, the qvd file doesn't exist

rgds

Not applicable
Author

I could figured out after read your answers we can validate if a qvd file exist using differents scripts file functions.

i.e: QvdNoOfRecords, QvdCreateTime, FileTime, FileSize;

Thanks.

regards.