New to Qlik Analytics

If you’re new to Qlik Cloud or Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More

Who Me Too'd this topic

qliker2
Contributor II
Contributor II

Best Practice Error Handling in Script

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?

Labels (3)
Who Me Too'd this topic