Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
rupamjyotidas
Specialist
Specialist

NPrinting API - Creating a GET connection in QlikSense to get Task Results

I have been trying to create a GET connection. All the help documents tells that the Set Cookie will return three values. I get only two values in the Set Cookie field. When I use either of them in the subsequent call, I get a server error.

 

Any help will be appreciated.

1 Solution

Accepted Solutions
rupamjyotidas
Specialist
Specialist
Author

Do we need to update all the below to get this work?

nPrinting : Qlik NPrinting February 2018 SR1

Qliksense: Qliksense Feb 2019

Rest Connector: 2.0.6

Thanks

Rupam

View solution in original post

6 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

This is very well documented process on community. I also wrote a post and attached very broad library of ready to use scripts in form of Subroutines bundled in qvs.

see here for more:

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

once you download NPrinting.qvs, at the very beginning you have all parameters which you need to place when creating your connection.

 

regards

Lech

 

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.
rupamjyotidas
Specialist
Specialist
Author

Thank you for this, really helpful, but my problems lies with the below string manipulation

Let vCookieRaw = Peek('Set-Cookie',0,'cookie_items');
Let vCookie = TextBetween('$(vCookieRaw)','Secure,','Path=/',2);

My session cookie returns only two cookie value. If i changed to TextBetween('$(vCookieRaw)','Secure,','Path=/',1), I get a cookie value, but the server returns an error when I try to send the call

below is the vCookieRaw value I get

 

 

rupamjyotidas
Specialist
Specialist
Author

Do we need to update all the below to get this work?

nPrinting : Qlik NPrinting February 2018 SR1

Qliksense: Qliksense Feb 2019

Rest Connector: 2.0.6

Thanks

Rupam
Frank_S
Support
Support

Hi @rupamjyotidas 

There is a possibility that if you are still seeing issues, that you may need to update your QS server to April 2019 release.

There have been issues with the rest connector in some prior versions of QS. 

QS rest connector 2.11 contains the latest fixes and this version is found in the April 2019 release of Qlik Sense.

https://community.qlik.com/t5/Qlik-NPrinting-Documents/NPrinting-API-Setup-Requirements/ta-p/1511296

Kind regards...

 

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
taserion
Partner - Contributor
Partner - Contributor

I have the exact same issue, also Sense 2019 Feb release. Have you @rupamjyotidas  been able to try if an update of Qlik Sense did solve your issue? 

rupamjyotidas
Specialist
Specialist
Author

We are upgrading only next year. But for now, I installed REST for Qlikview , used Qlikview to Get the data from nPrinting and read the data  into Qliksense.

not a better solution, but till we get upgraded, this works for us.