Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
alexsid-qlik
Contributor II
Contributor II

Let script fail intentionally

Dear community,

I am trying to let my script fail on purpose. I already tried what is described here: https://community.qlik.com/t5/QlikView-App-Development/How-can-I-intentionally-create-a-script-error...

But setting the ErrorCode to 1 like this LET vErrorCode = 1; did not work.

Do you have any other idea? My intention is to use this app as task which can trigger another app reload if it was successful but if not successful the other app should not start.

Best regards,

Alex

1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

i myself have done this

cause an error deliberately by this statement

load * from CauseError.qvd;

when that qvd doesnt exist

View solution in original post

3 Replies
dplr-rn
Partner - Master III
Partner - Master III

you may have misunderstood. miguel is writing a statement which will fail

so he is calling a variable o which doesnt exist $(=o) 

dplr-rn
Partner - Master III
Partner - Master III

i myself have done this

cause an error deliberately by this statement

load * from CauseError.qvd;

when that qvd doesnt exist

alexsid-qlik
Contributor II
Contributor II
Author

Awesome! That worked perfectly.  

Thank you very much