Qlik's help site mentions the necessity of adding a condition to a task reload chain in Qlik Application Automation in order to "trigger the second reload only if the first reload is successful."
Can the same thing be achieved by using the "On Error: Stop" option in the Settings of the first reload?
Resolution
There are differences between the "On Error: Stop" setting and the "if the status = succeed" condition.
- "On Error: Stop" will terminate the automation if the "Do Reload" fails at the higher level. For instance, if the app with that APPID does not exist anymore. If the reload starts and it's not successful, that will not be captured as an error
- The "if the status = succeed" condition will check the actual status of the previous app reload in Qlik Sense, and it's the only way to determine if it was really successful
- Hitting an error with the "On Error: Stop" setting will completely terminate the automation. All further blocks will be ignored
- The "if the status = succeed" condition will apply only to the blocks contained within that condition. This means that other subsequent blocks can be executed if outside the scope of that condition.
Related Content:
Qlik Help Site on Task Chaining
How to: task chaining with Qlik Application Automation
Environment
Qlik Application Automation on Qlik Cloud