Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Keerthi1234
Contributor III
Contributor III

Trigger second automation when the first automation is succesful

Hi,

I have a automation which runs for more than 4 hrs so timeout error occurs when it reaches 4 hrs, So inorder to avoid this , I split the same into two automations and want to trigger the second one only of the first one is successful. I used few methods like

- Call Automation block where the first automation does trigger the second automation, but the issue is if the call automation triggers at 3hr 30 min ,the second automation runs for another 1 hour, the first automation times out when it reaches 4 hr and I noticed the first finishes only the second one completes(there is link between the two), but in this case  timeout error occurs at 4hr. Is there a way to end the first and start with second.

- Webhooks with RunEnded event works fine but there is an issue where even if the first automation is successful or failed, the second automation is triggered but that should not ideally happen right ,only if the first automation is successful the second one should be triggered.

Has anyone faced these issues? Please help in finding the correct and appropriate approach.

Thanks,

Keer

Labels (2)
6 Replies
rubenmarin

Hi, there is an article with the configuration needed to chain automations over the 4 hours limit: https://community.qlik.com/t5/Official-Support-Articles/How-to-build-long-running-task-chains-in-Qli...

 

marksouzacosta

Hi @Keerthi1234,

Sorry, I forgot about continuing our conversation on the other topic, last week was quite busy:
https://community.qlik.com/t5/Application-Automation/trigger-automation-in-a-task-chaining-way/m-p/2...

In that case you have to check the status of the Automation Run and do something according to the Run Status.

This is the whole diagram:

marksouzacosta_0-1741049169689.png

 

Run Ended block details:

marksouzacosta_1-1741049218447.png

Get Automation Run block details:

marksouzacosta_2-1741049248149.png

Note: Run Ended > Data > Id is the Id of the Automation Run that triggered this automation.

Condition block details:

marksouzacosta_3-1741049280477.png

 

Please let me know if that helped.

Regards,

Mark Costa

 

 

 

 

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

Keerthi1234
Contributor III
Contributor III
Author

Hi @marksouzacosta ,

Thank you for taking time and responding!!.

I tried this approach it works but after the second automation starts it starts to timeout , not sure why that happens, We are checking on that.

 

Thanks,

Keer

 

 

marksouzacosta

Please let us know if we can help on your second automation. If so, share the diagram here please.

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

Keerthi1234
Contributor III
Contributor III
Author

Hi @marksouzacosta ! Thank you !
   Actually the second automation throws timeout error due to webhook timeout , it runs only for 15 mins which is default  and even cannot increase it further as it is a platform limitation 😞 , We are looking for other ways to achieve the same .

 

Thanks,

Keer

salmankojar
Partner - Creator II
Partner - Creator II

Hi @Keerthi1234 you can use RUN AUTOMATION Block in your first Automation after your last Block and add a condition whether it is successful or not. Inside the run Automation block use Run Mode as start and continue. If you share your flow, then it would be easier to help you on it properly.