Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello, I need to validate the existence of a file before trying to load it so that I don't get an error.
Is there any way to do it?
thank you so much!
You don't need to check the exists of the file else just changing your loop approach by using something like this:
for each file in filelist('lib://.../file_*.qvd')
Hello,
you can get inspired by this solution for your problem
Résolu : Chargement depuis plusieurs fichiers Excel et plusieurs she... - Qlik Community - 372841
You can use qvdcreatetime function
Let Listqvdexists=isnull(QvdCreateTime('$(VAR_DIR_ETL_QVD)$(VAR_NAME_FILE_QVD).QVD'))
Use below link for incremental load for reference
https://community.qlik.com/t5/QlikView-App-Dev/Incremental-load-by-using-qvd-date/td-p/1222078
You don't need to check the exists of the file else just changing your loop approach by using something like this:
for each file in filelist('lib://.../file_*.qvd')
Hi,
Here's a suggestion:
Simply set the error mode to 0 before your for statement starts,
and set it to 1 when your for statement ends.
Even if the file doesn't exist and you try to load it, you will get an error, but your script will run anyway.
Best regards Son
You're right!! I'm going to try that. Thank you so much!!