Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Exit document without saving

Hi

I am currently using the ErrorCode to handle any reload errors in my document. I use:

set ErrorMode=0

IF ErrorMode>0 THEN

     Exit Script;

END IF

If an error is found how do you rollback the document before the script was executed?

Or how do you exit without saving?

Man thanks

1 Solution

Accepted Solutions
erichshiino
Partner - Master
Partner - Master

Hi,

If you use ErrorMode =1 instead of =0, QlikView will have its default behavior and when the error is found, the execution is stopped and any changes ( except store statements) will rollback to previous state

Exit script will just finish script and changes will be saved

Hope it helps,

Erich

View solution in original post

2 Replies
erichshiino
Partner - Master
Partner - Master

Hi,

If you use ErrorMode =1 instead of =0, QlikView will have its default behavior and when the error is found, the execution is stopped and any changes ( except store statements) will rollback to previous state

Exit script will just finish script and changes will be saved

Hope it helps,

Erich

Anonymous
Not applicable
Author

Many thanks Erich.

I used ErrorMode=2 instead, but you certainly pointed me in the right direction.

Robbie