Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
We are using Qlik NPrinting to send report for business. on Daily basis our task will execute.
During this execution, sometime the task taking long time and its hanged. So it was not successful.
In this case, is it possible to kill (abort) that respective automatically from Qlik NPrinting.
Please suggest.
try looking into this : https://help.qlik.com/en-US/nprinting/May2022/APIs/NP+API/index.html?page=56
i guess that you could create some logic retrieving current tasks duration, and patching the ones you want to kill to "aborted" as described in the help file.
a good starting point is this article: https://community.qlik.com/t5/Qlik-Sense-Documents/Distribute-NPrinting-reports-after-reloading-a-Ql...
(essentially about triggering tasks... but the required steps should be there.
The abort feature is found in the NP web console (but it is manual):
Admin>Task Executions:

Kind regards...
Hi @balajibc64
Yes, this is super easy if you could use task chaining and API to run your report.
I have this implemented such solution in my NPrinting.qvs as a one of the parameters of the Metadata reload task but it can be easily replicated/added in Publish task too. I just put few lines of code inside loop to check how long task runs and if it exceeds certain threshold I initiate ABORT task call:
https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/
cheers
@Lech_Miszkiewicz Where this Nprinting qvs file will be available.
Hi @balajibc64 ,
I gave you direct link in my previous post. NPrinting.qvs is on my blog site https://nprintingadventures.com/