Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Support Case Portal has moved to Qlik Community! Read the FAQs to start exploring Support resources.
cancel
Showing results for 
Search instead for 
Did you mean: 
anushree1
Specialist II
Specialist II

Qlikview Reload Error

Hi,

Could anyone let me know if its possible to make a Qlikview Reload fail by using the error modes , i tried setting it to 2 .

But i still find the reload successful

1 Solution

Accepted Solutions
gareth_wilson12
Partner
Partner

Something like this is a little cleaner, allows you to set/unset the variable to trigger the failure and allows a custom message which will be visible in the Log file.

Let vFailScript = 1;

IF $(vFailScript) = 1 THEN

Trace Custom Error Triggered;

SET [Error 1001 - My Custom Error is now Triggered];

END IF;

View solution in original post

11 Replies
sunny_talwar

You want the reload to fail? May be just add something like this at the point you want it to fail

adakjdhajdhaskj

sunny_talwar

This is what I got

Capture.PNG

anushree1
Specialist II
Specialist II
Author

ya sure, but is there a cleaner way to do this using the error mode variables or so

sunny_talwar

Error_Mode is used for when there is an error, it can't throw an error for you.

sunny_talwar

Read here on what error mode does

ErrorMode ‒ QlikView

anushree1
Specialist II
Specialist II
Author

Ya sure, i get that but was looking for a variable that does a reverse of this.

So is there anything of that sought.

sunny_talwar

I don't think so... but let's see if hic‌ or rwunderlich‌ know anything.

sunny_talwar

You can Exit the script using EXIT SCRIPT;... or do you want it to actually fail? Can you explain the use case for this?

anushree1
Specialist II
Specialist II
Author

I actually want it to fail as in case the other developer hits run task on qmc the reload does'nt happen.

WE have multiple tasks with very similar names