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: 
sharanqlik
Contributor II
Contributor II

Nprinting On - demand Task Logs

Where can we exactly find the Nprinting On- demand Task logs ?

in the qmc, we do not find any option to see logs of an on - demand task. if task fails, its quite difficult to investigate the root cause in the absence of logs.

Labels (1)
8 Replies
Ruggero_Piccoli
Support
Support

Hi,

In Qlik NPrinting Web Console there is the page On-Demand requests with the information related to On-Demand requests. 

More details are available at: https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/AdministeringQVNprinting/Tasks/On-De...

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
sharanqlik
Contributor II
Contributor II
Author

Hi,

The only detail it has is weather the task was 'Failed', 'Aborted', or 'Completed'. There is no way to find why any task had failed because there are no logs.

Ruggero_Piccoli
Support
Support

Hi,

If the On-Demand request fails you can find a row in the nprinting_engine.log file like:

Engine.Navigator.QlikView.QV12.70 22.15.18.0 Engine.Navigator.QlikView.QV.QlikViewDocument.[12336]::navigator=qlikview;documentpath=qvp://serverName/documentName.qvw;qlikviewversion=12.80.20000 20230512T143831.717+02:00 WARN RD-RPC-OP-95840 0 0 0 0 0 0 0 0 Content request Qlik.Reporting.Engine.Messages.Requests.FilterMaterializationRequest cfb2071f-00c1-4634-82f6-be5f62f38057: resolution ended unsuccessfully with exception System.Exception: Cannot apply filter Filters: [Fields: [Name: F\Country, ConnectionId: 477bc64a-4dec-4b42-895b-268526680ef2, Values: [String:Belgium, String:Brazil], Override: False, Void: False, SelectExcluded: False], Variables: [], Void: False], Bookmark: Server\BM125-254_301360228, Void: False to current document data

and in the nprinting_scheduler.log file like:

Qlik.NPrinting.Scheduler 22.15.18.0 Qlik.NPrinting.Scheduler.Plan.ReportFailurePlanNodeExecutor 20230512T143831.780+02:00 ERROR RD-RPC-OP-95840 589bbdad-cf5d-4a24-a0bb-9d6634c45c28 0 0 00000000-0000-0000-0000-000000000000 0 abdec917-66e3-4eca-82c6-3a3516d80e17 0 0 Failed generation of report abdec917-66e3-4eca-82c6-3a3516d80e17 for user 589bbdad-cf5d-4a24-a0bb-9d6634c45c28. ERROR: System.Exception: Cannot apply filter Filters: [Fields: [Name: F\Country, ConnectionId: 477bc64a-4dec-4b42-895b-268526680ef2, Values: [String:Belgium, String:Brazil], Override: False, Void: False, SelectExcluded: False], Variables: [], Void: False], Bookmark: Server\BM125-254_301360228, Void: False to current document data

In my example, I applied an invalid filter.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Frank_S
Support
Support

If you have failing tasks, I suggest a few simple tests:

 

1. Check that your report will actually preview normally in the NP designer. (If it doesn't work in the designer, it will certainly not work in On Demand).

2. Ensure your report tables are up to date  https://community.qlik.com/t5/Qlik-NPrinting/How-to-add-updated-field-Single-Field-in-Nprinting-Desg...

3. Check that your NP report connection is in a 'generated' state

4. Reload the NP connection

 

If your report previews OK then your next steps is to check the following.

https://community.qlik.com/t5/Official-Support-Articles/NPrinting-Server-Web-Console-Publish-Task-Co...

This pertains to the publish tasks but the contents therein may also help you to work through other possible issues related to what you are experiencing.

 

Beyond that, if needed, you may go ahead and also start a Qlik Support request.


Kind regards...

 

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
sharanqlik
Contributor II
Contributor II
Author

Thanks both.

Is there no way the On demand task logs could be made available to the user like it is for the publish task ?

there are a lot of on demand tasks that fail and NP admin have to involved in it just because logs are not available to the use. Any API will help too.

Ruggero_Piccoli
Support
Support

Hi,

Create a Security Role with the permissions in the green box for the apps you need:

Ruggero_Piccoli_0-1685019114427.png

and assign it to the users that need to see the On-Demand requests.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
sharanqlik
Contributor II
Contributor II
Author

@Ruggero_Piccoli  what you are telling me is how to let users see the on demand requests.

what I am asking here is how to make the on demand LOGS available for the users. those are two different things.

Ruggero_Piccoli
Support
Support

Hi,

If with "on demand LOGS" you mean the log files:

For those reasons, we created the On-Demand Requests page https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/AdministeringQVNprinting/Tasks/On-De.... To give access to users to that page you have to create a security role with the rights highlighted in my previous post. Refer to https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/DeployingQVNprinting/Managing-roles....

Another way is to enable the Audit Trail https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/AdministeringQVNprinting/Audit-trail... and download the data via CSV or read them via APIs and create a Qlik Sense app like https://community.qlik.com/t5/Member-Articles/NPrinting-Audit-Trail-Application/ta-p/2073433. When an On-Demand request is set it is logged in the Audit Trail. 

Best REgards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.