Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

satheshreddy
Not applicable

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
kaushik_solanki
Not applicable

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

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

ramasaisaksoft
Not applicable

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

start and stop job.png

satheshreddy
Not applicable

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

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
Not applicable

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

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
Not applicable

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

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