Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

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

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
Emile_Koslowski
Employee
Employee

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

Last Update:

Jul 15, 2022 10:40:38 AM

Updated By:

LauraLangenaken

Created date:

Sep 28, 2021 11:03:14 AM

Attachments

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: ,
      Emile_Koslowski_0-1632839620916.png

       

  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 4 hours.
    4. Parital: Optional, specify if the reload should be partial (Yes) or not (No). Defaults to 'No' if left empty.
      Emile_Koslowski_1-1632840029509.png

       

  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.
    Emile_Koslowski_0-1632840463113.png

     

  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. 
    Emile_Koslowski_1-1632841068666.png

 

 

Labels (1)
Version history
Last update:
‎2022-07-15 10:40 AM
Updated by: