Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
khan_imran
Creator II
Creator II

Dependency task trigger in Nprinting

Hello All,

I want to set a hierarchical task in Npriting (June'18 version) which should run basis the completion of another task(like it happens in QMC).

kindly assist me to achieve this.

 

Regards,

Imran K

Labels (1)
1 Solution

Accepted Solutions
Bastien_Laugiero

Hello,

I would suggest starting locally and once it's working locally you can try from an external machine. 

Regarding using NPrinting and Qlik Rest Connector, you can follow this guide.

Hope this helps!

 

Bastien Laugiero
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.

View solution in original post

5 Replies
Bastien_Laugiero

Hello,

It's currently not possible to do it in the NPrinting Web Console. Please see What is Qlik NPrinting? to get a list of the available feature in the latest version.

However, you could do that by building an application/script using our API.

You will need to use two methods I believe: 

- Get status of task A. See this link 

- If the status is a success then run task B. See this link

Here is an article to get started with the NPrinting API using Postman 

And here is one to get started with the NPrinting API using Powershell

Hope this helps !!

Bastien Laugiero
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.
khan_imran
Creator II
Creator II
Author

Should i Install it on Server from which Npriting services are running or would it be installed on Users machine.

Also I have installed QlikRestConnector on Npriting server and when I am try to get a connection tested, I am getting an error Not Authorized 401 error.

I tried to logic from service account but the error remains the same.

I want to run Nprinting task post successful reload of QMC task(QlikView).

Regards,

Imran K 

 

Bastien_Laugiero

Hello,

I would suggest starting locally and once it's working locally you can try from an external machine. 

Regarding using NPrinting and Qlik Rest Connector, you can follow this guide.

Hope this helps!

 

Bastien Laugiero
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.
khan_imran
Creator II
Creator II
Author

Hi Bastien,

Thanks for your solution. I tried with the Qlik Rest connector and was able to get the connection done for GET part. However after applying the next step i got below error.

QVX_UNEXPECTED_END_OF_DATA: HTTP protocol error 403 (Forbidden):

The server refused to fulfill the request.
RestConnectorMasterTable:
SQL SELECT
"__KEY_data",
(SELECT
"id",
"name",
"description",
"type",
"created",
"lastUpdate",
"lastExecution",
"enabled",
"appId",
"__FK_items"
FROM "items" FK "__FK_items")
FROM JSON (wrap off) "data" PK "__KEY_data"
WITH CONNECTION( URL "https://servername:4993/api/v1/tasks", HTTPHEADER "cookie" "",
QUERY "Limit" "1000000",)

Also I tried with POST part as well and getting below error;

Contention failed

HTTP protocol error 403(Forbidden):

The server refused to fulfill the request.

Do assist me to resolve this.

 

Regards,

Imran Khan

 

 

Frank_S
Support
Support

Check the following article.
https://qliksupport.force.com/articles/000057262
Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!