Qlik Community


Search or browse our knowledge base to find answers to your questions ranging from account questions to troubleshooting error messages. The content is curated and updated by our global Support team

Support Case Portal has moved to Qlik Community! Read the FAQs to start exploring Support resources.

How to: retry a failed app reload in Qlik Application Automation


How to: retry a failed app reload in Qlik Application Automation

This article explains a retry mechanism for Qlik Sense app reloads in Qlik Application Automation. If a reload fails, the automation described in this article will retry the reload until the reload succeeds or a max retry limit is reached.

Retry reload until it succeeds

Create a new automation and follow these steps to retry a QCS app reload 5 times until the reload is successful:

  1. In the block picker menu, go to the basic blocks and search for the Loop block. Drag this block inside the automation editor and connect it to the start block.
  2. On the Inputs tab in the Loop block's setting menu, click the input field of the "Loop over items of list" parameter. And click "Add Formula" from the dropdown, this will open a popup window with the formula picker, search for the Explode formula and select it.
  3. Configure the Explode formula as follows and click Save:
    1. Text: 1,2,3,4,5. The formula will turn this string into a list of 5 items and since the formula is specified as input for the Loop block, the Loop block will loop over this list.
    2. Delimiter Character: ,


  4. Search for the Qlik Cloud Services connector in the block picker and look for the block "Do Reload". Drag this block inside the automation editor and place it inside the loop.
  5. Configure the Do Reload block as follows:
    1. App Id: Id of the application that should be reloaded. Click the input field to show the Do Lookup function (optional)
    2. Run Mode: Set this to "Wait for reload to complete".
    3. Timeout: The maximum amount of seconds that this block should wait on the reload to finish. Keep in mind that the maximum execution time of an automation is 60 minutes.
    4. Parital: Optional, specify if the reload should be partial (Yes) or not (No). Defaults to 'No' if left empty.


  6. Go back to the block picker and search for the "Condition" block, drag this block in the editor, and connect it right below the Do Reload block. We'll use this block to check if the reload status equals SUCCEEDED.
  7. Go to the inputs tab of the Condition block and specify the Status field from the Do Reload block's output as the first argument of the condition. The condition itself should be "equals" and the second argument should be "SUCCEEDED" without the double-quotes.


  8.  Now, when the Condition block is executed, and the reload status equals SUCCEEDED, the Yes part of the Condition block will be executed. In this scenario, the automation should stop since a successful reload was achieved. To do this, use the block Exit Loop and place this at the Yes part of the condition block.
  9. Optionally, you can add an output block or Send a message to Slack or Send a message to Teams to inform your team about the status of this information. 
  10. Tip: Right-click the Condition block and give it a description, this makes the automation easier to comprehend. Feel free to do the same to the Loop block.
  11. Tip: Right-click the Condition block to collapse the No part of the condition since it's unused.
  12. Below is a screenshot of the finished automation, a JSON export of the automation is attached to this article. 



Labels (1)
Version history
Revision #:
5 of 5
Last update:
4 weeks ago
Updated by: