Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Peony
Creator III
Creator III

Condition to reload dashboard after it failed

Hi all.

Is there some mechanism that allows to try reload dashboard a few times after it failed at first time?
As example:

1. QMC starts reload task.

2. Reload failed because of no connection to the souse DB.

3. Mechanism counts this failure as 1 and pull restart.

4. Reload failed because of no connection to the souse DB again.

5. Mechanism counts this failure as 2 and pull restart.

6. Still no connection to the souse DB again, reload failed.

7. Mechanism counts this failure as 3 and stop trying to restart.

I tried to start with something like this, but this doesn't work

Set ErrorMode = 0;
Set vScriptErrorCount = 0;

for i=0 to $(vScriptErrorCount) = 2;

Trace i = $(i);

LOAD
     Exists_Field,
     Non_Exists_Field_that_gives_a_load_error
FROM Some_Table.qvd (qvd);

Trace End script $(i);

Let vScriptErrorCount = ScriptErrorCount;

Trace ScriptErrorCount = $(vScriptErrorCount);

Next i;

Labels (1)
0 Replies