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: 
Not applicable

Issue With Nprinting

HI There

I've an issue here with Nprinting, looking forward to your help and suggestions. So here's the issue -

I'm triggering a NPrinting job via external xml request. There's a batch script i've written to copy the '.request' file to the Nprinting External requests directory and i've scheduled this batch script in QMC. This way i'm trying to automate the process but the problem here is -  the NSQ file executes fine when ran from Nprinting Client but doesn't execute by this external XML request.

Batch Script -

copy "\\WA01708p\QlikView\SourceDocuments\EPD\India\NPrinting\Source XML\Disha.request" "\\WA01711P\QlikView\NPrinting\ExternalRequests\Disha.request"

External request File -

<?xml version="1.0"?>

<schedules>

<schedule file="\\WA01708P\Qlikview\SourceDocuments\EPD\India\NPrinting\Solution\Disha.nsq" type="job" entityName="Email Publish Job - Test2" />

</schedules>

Note -  The QVW and Nprinting client are in different machines(Servers) but that shouldn't be an issue because it runs fine in Client.

7 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

does something happens when you copy the file?

does it triggers the server to run the job?

can you add a picture of your nprinting server configuration ?

lars_plenge
Partner - Contributor III
Partner - Contributor III

Hi

there is a mistake in your batch script here an example that works: When the tasks is executed is the file renamed to <filename>.processed. I have also seen issues with DNS names try ip-addr.

move \\FILE02\QV_Docs\NPrinting\ExternalRequestsXML\BSPUExternal.processed \\FILE02\QV_Docs\NPrinting\ExternalRequestsXML\BSPUExternal.request

the supporting task in the QMC is:

\\FILE02\QV_Docs\NPrinting\ExternalRequestsXML\BSPUExternal.bat

request file:

<?xml version="1.0"?>

<schedules>

<schedule file="\\10.99.3.122\QV_Docs\NPrinting\BSPU.nsq" type="job" entityName="BSPU Poster" />

</schedules>

remember to add the NSQ file in the Nprinting server. and stop and start the server process when you make changes.

i have a scheduled windows task the stop/start to server process every night because the customer have access to changes the reports and tasks.

Daniel_Jenkins
Specialist III
Specialist III

Hi Snehasis,

Is your batch file or your XML request not working (or both)?

  • Execute the bat file outside of QMC. Does it copy your .request file correctly?
  • Can you put the job (Email Publish Job - Test2) in a schedule and execute it from the NPrinting server? If not you might have configuration issues. Please see: Troubleshooting: NPrinting Server Service and Schedules
  • Is the path to the request file location correctly entered in the QlikView NPrinting Server "Source Folder" field?
  • Does the Active Account used in the NPrinting server have full rights to this folder? Log on as that user to test.
  • Check the NPrinting server log file. When you start the server service you should have an entry "Message External request thread loaded"
  • It is not necessary to add the NSQ to the NPrinting Server
  • If you use the DOS command Move in your batch file, the source file will not exist the next time around so I would stick with Copy. Another option I have used is to save the initial XML file in the source folder with a .processed extension and then use the Ren command in the batch file to rename it to .request when required. When the request file is executed, NPrinting automatically renames it to have a .processed extension so your next iteration of the batch file should work.

If you still can't get it to work I suggest opening a case with Support via the Qlik Customer Portal: QlikView Customer Portal - Business Intelligence (BI) Reporting Software Solutions | Qlik

HTH - Daniel.

Daniel_Jenkins
Specialist III
Specialist III

Hi Lars,

Just wanted to let you know that when using the more recent versions of QlikView NPrinting server, it is no longer necessary to include the NSQ. In fact you can leave the QlikView NPrinting Files box empty if you only intend to use External XML requests and On-demand. Also, there should be no need to stop and start the service or server process. In my testing NPrinting seamlessly picks up the changes once the NSQ is saved. If you experience different behavior in the latest version I suggest you use the Qlik Customer Portal to open a case with Technical Support.

Best regards,

Daniel.

Not applicable
Author

Hi Daniel

Here are the answers -

  • Execute the bat file outside of QMC. Does it copy your .request file correctly? - yes it does
  • Can you put the job (Email Publish Job - Test2) in a schedule and execute it from the NPrinting server? If not you might have configuration issues. Please see: Troubleshooting: NPrinting Server Service and Schedules ‌- The job has dependancy on another qlikview task scheduled in QMC , this qlikview task takes Variable time hence I cannot have a fixed schedule for the Nprinting Job.
  • Is the path to the request file location correctly entered in the QlikView NPrinting Server "Source Folder" field? - yes it is.
  • Does the Active Account used in the NPrinting server have full rights to this folder? Log on as that user to test.- yes it has
  • Check the NPrinting server log file. When you start the server service you should have an entry "Message External request thread loaded" - The job doesn't at all gets triggered hence no updated log file.
  • It is not necessary to add the NSQ to the NPrinting Server - Yes i'm doing without adding.
  • If you use the DOS command Move in your batch file, the source file will not exist the next time around so I would stick with Copy. Another option I have used is to save the initial XML file in the source folder with a .processed extension and then use the Ren command in the batch file to rename it to .request when required. When the request file is executed, NPrinting automatically renames it to have a .processed extension so your next iteration of the batch file should work. - i'll give this a try

Well does it have anything to do with the version of NPrinting? Coz i'm not fully upgraded, using Nprinting - 15.3.0.2 ?

Daniel_Jenkins
Specialist III
Specialist III

Hi Snehasis,

Point 2 - try the job in a task in the Server anyway - remove the dependency and any other tasks if required. This is for testing only. If it does not get triggered then we know that it is a configuration issue.

Point 5 - Irrespective of whether the job is triggered or not, you should have "Message External request thread loaded" in the log file as long as you have Enable external requests enabled on the server. The fact that it does not appear reinforces the suspicion that your configuration needs looking into.

If you have no real reason to stay with an older version you should always upgrade to the latest. Every release contains improvements and bug fixes that are published in the release notes. As always, read the release notes, take backups and test before moving your projects to Production.

If you cannot get it to work even after going through the troubleshooting guide I suggest you open a case with Qlik Support through the customer portal. We will be happy to assist.

- Daniel.

fredericvillemi
Creator III
Creator III

Hello,

I have exactly the same issue.. I have made a ticket to customer portal.

Everything seems well configured, normal scheduled run fine but ExternalRequestXML immediately becomes renamed to .processed with no .result and no effect.

Thanks