Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is there any best practice on how to implement error handling in QS scripts?
My approach is to set ErrorMode=0 and then to handle Exceptions as proposed in Qlik Sense Help:
set ErrorMode=0;
LOAD * from abc.qvf;
if ScriptError=8 then
exit script;
//no file;
end if
However, if you do multiple loads in one script, you probably want to know if you had any errors and which load statements were affected. How can you Iog the errors and related objects to a table/qvd which you can then report? Or is there another way to do proper error handling?
@qliker2 The following Design Blog may be of some further use:
https://community.qlik.com/t5/Qlik-Design-Blog/Error-Variables/ba-p/1464402
Regards,
Brett