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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
balajibc64
Specialist
Specialist

Is it possible to abort the Qlik NPrinting Task automatically

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. 

Labels (2)
5 Replies
mikaelsc
Specialist
Specialist

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. 

Frank_S
Support
Support

The abort feature is found in the NP web console (but it is manual):

Admin>Task Executions:

 

Kind regards...

 

 

 

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

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:

 

Lech_Miszkiewicz_0-1730777793756.png

Lech_Miszkiewicz_1-1730777979716.png

 

https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
balajibc64
Specialist
Specialist
Author

@Lech_Miszkiewicz Where this Nprinting qvs file will be available. 

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @balajibc64 ,

I gave you direct link in my previous post. NPrinting.qvs is on my blog site  https://nprintingadventures.com/ 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.