Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
satheshreddy
Creator III
Creator III

how to do fail while running dash board in QMC level?

Hi All,

for testing purpose.

i want to do fail while running successfully dashboard?

how we can achieve this?

Regards

Sathish

5 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

You can start the task and stop it immediately.

For QlikView, Create a task and then you will see it under task tab. Here you will see couple of buttons next to the task, click on run button and then once it starts you will see button to stop it.

For Qlik Sense, once you create a task you can see a start button at bottom and also stop button to stop the rask.

In either case once you stop the task it will fail.

Rgards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
ramasaisaksoft

start and stop job.png

satheshreddy
Creator III
Creator III
Author

Hi Sai,

this one i know, if we need to do throw Script?

am thinking just put some unwanted script it will fail automatically.

Regards

Sathish

ramasaisaksoft

you mean

exit script;

or

LOAD * INLINE [

    CustomerID, ProductName

    001, Ball

    001, Book

    001, Pen

    002, Ball

    002, Pen

    003, Pen

    004, Ball

    004, Pen

    005, Ball

    005, Book

];

Binary [\cityreg\desktop\default script.qvw];

it will throws script error.and it will fail.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

In your script you can try using a self-invented statement, like

CRASH;

It won't be recognised by the Scriupt execution engine, and as a result it will do exactly what it means.

For exmaple, you can use this trick in an IF statement that evaluates conditions that should be fulfilled to succeed, otherwise fail:

:

IF NoOfRows('MyTable') > 0 THEN

  // Proceed

  CONCATENATE (OtherTable) LOAD ... RESIDENT MyTable WHERE ...;

ELSE

  CRASH;

END IF

:

Peter