Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Leverage your QlikView investment to modernize BI – see how! Join Group
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Re: Reload should fail if QVD size is zero

If you want a task furter up in the QMC chain to not run when a QVD is found to be empty, let your script crash if you detect no loaded rows. I often use a self-invented statement called CRASH; to do this Smiley Wink, because QlikView doesn't supply something similar. Your script then becomes

TableSomething:
LOAD * FROM SomeFile (SomeOptions);

IF NoOfRows('TableSomething') = 0 THEN
  CRASH;
END IF

Of course, the task will fail and you will get an appropriate email scream from the QDS. But the second task will not run.

 

View solution in original post

Highlighted
Master
Master

Re: Reload should fail if QVD size is zero

Crash 😛

 

Nice one

Highlighted

Re: Reload should fail if QVD size is zero

Well, for one thing

:
ABORT;
:

works equally well, and is a bit less dramatic Smiley Happy

Highlighted
Creator II
Creator II

Re: Reload should fail if QVD size is zero

If two QVW reloads are dependent, then QVW2 runs after 'Successful' execution of QVW1 in QMC. If QVW1 fails, then QVW2 would never reload at all. Isn't this the case in your tasks set in QMC?

Highlighted
Creator II
Creator II

Re: Reload should fail if QVD size is zero

If two QVW reloads are dependent, then QVW2 runs after 'Successful' execution of QVW1 in QMC. If QVW1 fails, then QVW2 would never reload at all. Isn't this the case in your tasks set in QMC?
Highlighted
Creator II
Creator II

Re: Reload should fail if QVD size is zero

Yes, it works in that manner only.
But in my case QVW1 was not failing, right..

So I have made that answer as correct.. That script looks for size of the qvd 1st, if it is zero it will fail because of writing CRASH/ABORT.. if it is not zero, normal execution will happen..
Highlighted
Master
Master

Re: Reload should fail if QVD size is zero

Please close the thread

Highlighted
Creator II
Creator II

Re: Reload should fail if QVD size is zero

How ?