Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
lmenendez_grupo_pinero
Contributor III
Contributor III

How to avoid a "not found" file error notification

Hi,

I have a loading loop to load several csv files.

The loop is a "for ... each" loop so I declare every possible value of the csv file I will load.

When the script code do not find the named file (named by the loop for ... each) the script stops and shows me an error messege.

I would like the scripts do not stops for this reason , instead I would like the script ignore the csv which not exists and takes the following one.

Is there an easy way to do this?

Thanks

Labels (1)
1 Solution

Accepted Solutions
vchuprina
Specialist
Specialist

Hi,

Add the following at the start of your script:

set ErrorMode=0;

https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/ErrorVa...

Regards,

Vitalii

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").

View solution in original post

2 Replies
vchuprina
Specialist
Specialist

Hi,

Add the following at the start of your script:

set ErrorMode=0;

https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/ErrorVa...

Regards,

Vitalii

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
lmenendez_grupo_pinero
Contributor III
Contributor III
Author

Excellent , I set 0 before and 1 after the loop to be notificated in case of other kind of errors.

Many Thanks.