Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

qvd's are deleted how to identify in qlikview, any function is available

Hi,

I have some qvd's are deleted how to identify in qlikview, Is there any method or function to find out 

deleted qvd's

Thanks,

Tejeswara Rao.

6 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

I am not sure what you require. How would you identify something that has been deleted?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

In my environment my qvw associate some qvd tables which are deleted,How do you check

like manual method or any function available in qlikview

kevpickering
Contributor III
Contributor III

Are you wanting to check whether the qvd file exists before processing it? If so, use the FILESIZE() function:

IF ISNULL(FILESIZE('<path to qvd file>')) > -1  THEN

  <code to process qvd file>

END IF

kevpickering
Contributor III
Contributor III

Sorry, the ISNULL() should be <> -1 (not > -1)

Not applicable
Author

Thanks Kevin..

Magnus_Berg
Employee
Employee

In Qlik Deployment framework there is a built in function to validate content:

vL.FileExist sub function validates if a file or folder exists, can be used before load to avoid errors during script load.
Syntax example in the script: call vL.FileExist('$(vG.QVDPath)\*');

Variable vL.FileExist returns true or false.

Example, action exit script after check:

call vL.FileExist ('$(vL.MetaDataQVDPath)\1.NorthWind);
Will Check if1.NorthWind folder exists and return vL.FileExist = true or false

call vL.FileExist ('$(vL.MetaDataQVDPath)\SOE.qvd');
if vL.FileExist = 'false' then; trace '### Did not find file, exit script'; exit script; endif;