Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 mohan2391
		
			mohan2391
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
I have a requirement where the reload of QVW should stop when the size of QVD which I am loading in the QVW is zero.
How to achieve this ?
Thanks in advance
 Peter_Cammaert
		
			Peter_Cammaert
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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  , because QlikView doesn't supply something similar. Your script then becomes
, because QlikView doesn't supply something similar. Your script then becomes
TableSomething:
LOAD * FROM SomeFile (SomeOptions);
IF NoOfRows('TableSomething') = 0 THEN
  CRASH;
END IFOf course, the task will fail and you will get an appropriate email scream from the QDS. But the second task will not run.
 shiveshsingh
		
			shiveshsingh
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Crash 😛
Nice one
 Peter_Cammaert
		
			Peter_Cammaert
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Well, for one thing
: ABORT; :
works equally well, and is a bit less dramatic 
 qlikwiz123
		
			qlikwiz123
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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?
 qlikwiz123
		
			qlikwiz123
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 mohan2391
		
			mohan2391
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 shiveshsingh
		
			shiveshsingh
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Please close the thread
 mohan2391
		
			mohan2391
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		