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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
mudit_rathi_
Contributor
Contributor

NPrinting APIs in Qliksense

Hello Qlik Community,

I'm encountering a very frustrating issue with my Qlik Sense data load script, and I'm hoping for some guidance.

My Goal: My script iterates through a list of users, checks if they exist in NPrinting via API, creates them if not, and then assigns a specific role ("On Demand Role") to them via NPrinting API. If a user exist, then I use the POST request in else condition and assign them ("On Demand Role").

The Problem: The script is exiting prematurely at random points.

  • Sometimes it processes only 2-3 users, sometimes 10, sometimes 50 or more, then stops and exits, saying Data Load is complete.

NPrinting API Calls are Successful: I have verified that the NPrinting API calls are working correctly. Users are indeed being created and role is getting assigned in NPrinting.

My Question: Given that the NPrinting API calls are successful, what could be causing Qlik Sense to terminate the script abruptly?

Thank you!

Labels (1)
1 Reply
mudit_rathi_
Contributor
Contributor
Author

Hi,

Thank you for your response. I am using Sleep delays. I tried 2 sec, 5 sec, 10 and 20 sec as well, but still at some point it will exit out of the loop and a weird thing is that from the point it exits, it will write the whole code in the progress screen. 

Also, I tried Error mode to trace the output but instead of logging it, it just shows the code and not the output from that code.