Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW

Advanced troubleshooting of the GRPC and or CEF Errors in Qlik NPrinting

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Andre_Sostizzo
Digital Support
Digital Support

Advanced troubleshooting of the GRPC and or CEF Errors in Qlik NPrinting

Last Update:

May 2, 2024 11:12:42 AM

Updated By:

Frank_S

Created date:

May 10, 2021 3:42:22 PM

This article lists the resolution and troubleshooting steps that must be followed if images are not rendered correctly in Qlik NPrinting reports.

NOTE: Before proceeding below, please check this article

 

Troubleshooting Steps:

Image export failures may be due to some configuration errors. The following must be checked:

 

  • Assistance/suggestions mode for the Qlik Sense charts is not supported. Ensure it is disabled for all the objects imported in the report.

 

  • The imported object ideally will be a native Qlik Sense chart object. 3rd party extensions may result in unexpected results. Contact your extensions vendor for 3rd party extension support

 

 

  • For a listing of compatible, built-in Qlik Sense objects, check the compatibility matrix found in the following link to better understand specific Qlik Sense object limitations with NPrinting reporting. 
    Working with Qlik objects

 

 

 

 

  • Check that 'In' and 'Out' bound ports between the Qlik NPrinting server Qlik NPrinting engine and the Qlik Sense server are configured. Keep in mind that Ports 4997 and 443 must now also be configured since November 2018 release of Qlik NPrinting.

 

  • Check that ports 2727 and 15672 are not being used by any other process/program on the NPrinting server and engine computers. These ports are required for normal NPrinting operation. See Ports - Qlik NPrinting

 

  • Check that the Qlik Sense objects and or Qlik Sense visualization used in your NPrinting report are supported as per the "Keep in Mind" section above

 

 

 

  • Check for the use of a Qlik Sense proxy 'prefix' in the Qlik Sense Management Console. If one exists, via the NP web console, the prefix must be added to the NP connection string ie: https://qlikserver1.qlik.com/qlik

 

  • Check to see if anything has been entered into Additional Response Headers under the Qlik Sense Virtual Proxy being used (select Advanced to view), if so remove and test.

 

 

  • Abort all running Task and On Demand Task executions then reboot the Qlik NPrinting Server, Qlik NPrinting Engine computer and the Qlik Sense server at the first available opportunity and retest if the issue still persists. Ensure all services on each computer are up and running before retesting.

 

If the issue persists after checking all points above, please check the solutions in the resolutions section of this article.

 

Resolution steps:

Resolution 1

Fully Qualified Domain Name path or some other parameter of the original Qlik Sense server certificates may have changed. Use the following article to resolve this issue: NPrinting Verification process does not capture certificate FQDN mismatch in turn resulting in GRPC ...

To ensure editing the correct file, please do the following before proceeding as directed below:
  1. Open windows File Explorer
  2. Click 'View' tab
  3. In 'Show/Hide' area of the 'View' ribbon, Click checkbox "File Name Extensions" in order to show the full file name

 

Resolution 2 

GRPC error: Check NP CEF Engine log file: May be represented by the error: "The remote server returned an error: (401) Unauthorized" . (Internal JIRA defect reference: OP-8814)

  • Check that the path to the QMC proxy is the same as the connection path used in the NP connection proxy address path.
  • You must also ensure that port 443 and port 4997 are not blocked in your environment as mentioned in the article description.

 

Resolution 3

If the NPrinting Error logging or preview errors contain the message "CEF rendering exception - "Buffer cannot be Null" go to the following article for the solution: CEF rendering exception - "Buffer cannot be Null" Error in NP report preview with Qlik Sense Connect..."

 

Resolution 4

If Resolution 1 and 2 above do not resolve the issue and all image export requirements are met, check and perform the steps below:

  1. Stop the NPrinting Engine Service.
  2. Open the renderer.config file in C:\Program Files\NPrintingServer\NPrinting\Scheduler. You may need to open the file in administrator mode.
  3. Make a backup copy of the file.
  4. Add (or modify if present) the following parameter:
    <add key="webrenderer-timeout-sec" value="120" />
    120 is the time in seconds for the timeout. It can be increased up to 300 if necessary and retest.
  5. Restart the NPrinting Engine service

Increasing these timeout values may lead to improved performance as NPrinting may simply need more time to execute tasks and report generation. These changes also need to be made after an NPrinting upgrade. NP Config files are overwritten during the upgrade process.

 

How to Enable 'Logging'

If resolutions above have not resolved the issue, please perform the following steps and reproduce the issue one again in order to retrieve debug logging necessary for a deeper investigation. Then zip and upload the requested debug logs below up to the support case. 

 

Causes:

Possible causes of GRPC error

  • assistance/suggestions mode is enabled (it is currently on the road map to have this feature fully supported)
  • the chart is an unsupported 3rd party extension (map extensions for example). See article below regarding Qlik Sense extensions and how to enable them for image export.
  • In some cases, image web rendering default time while connected to Qlik Sense needs to be adjusted perhaps due to network latency or other network performance related issues
  • Communication between the NPrinting server and the Qlik Sense server is discovered to be problematic.
  • The Qlik Sense server itself could be overloaded and not responding to the NPrinting server in a timely manner.
  • When NPrinting is used in conjunction with Qlik Sense Deployments From September 2018 and higher where "HTTP" is used rather than "HTTPS", specific CEF or GRPC errors will be logged. See article Qlik NPrinting Unexpected CEF rendering exception with HTTP connection for more information.
  • Certificate mismatch as identified in article NPrinting Verification process does not capture certificate FQDN mismatch in turn resulting in GRPC ...
  • Invalid path used in the NP connection 'proxy' address path. Path used with the NP connection should be the same as the path used to open the QMC or QS Hub
  • Error logging to look for NPrinting Logs: "Failed to open a resolver for connection" and "The remote server returned an error: (403) Forbidden"


Reference

Creating visualizations using chart suggestions
Enabling export of your visualization extension
Using Qlik Sense third-party extensions

Labels (1)
Version history
Last update:
2 weeks ago
Updated by: