Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW

NPrinting Preview Error Object reference not set to an instance of an object

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

NPrinting Preview Error Object reference not set to an instance of an object

Last Update:

Oct 25, 2022 5:01:57 PM

Updated By:

Frank_S

Created date:

Apr 7, 2021 1:44:01 PM

Attachments

When previewing a report, the error with message Object reference not set to an instance of an object  is displayed to the user.

Example 1:

Error.PNG

Example 2:

Error... CEF rendering exeption. GRPC rendering request failed... Object referenced not set to an instance of an object

79773_CEF_error_object reference.png

 

Example 3:

errortaskwarn.png

Environment

  • NPrinting November 2020 and earlier versions

Cause:

Two causes are listed here, there may be other ones documented on different resources.

  • 1. When you have two or more NPrinting connections using the same source QVW or QVF and BOTH connections are contained within the SAME NPrinting 'App', the error is generated when attempting to preview an NPrinting report in the NPrinting Designer.
  • The "two or more connections in the same NP App "was not supported option in earlier versions of NPrinting as per the stated connection rules for both QlikView and Qlik Sense. Doing so in earlier versions results in the error shown above.

For latest connection rules see:

 

2. The default https:// listening port in the Qlik Sense QMC has been modified and not update in the NPrinting connections to the Qlik Sense server.

Resolution

To the two causes listed above respectively:

1. Example 1 solution: To prevent this error, upgrade your NPrinting Server and Designers to February 2021 NPrinting or later releases. Support for multiple connections using the same QVF or QVW inside a single NP App began in Feb. 2021 version of NPrinting.  You can view the fix/new feature in the Feb. 2021 release notes - attached. (Internal Investigation ID OP-9606)

2. Example 2 solution:

  1. Open the Qlik Sense QMC
  2. Identify the https:// 'listening' port. 
    1. 79773_SenseProxyPort.png
  3. If this port is different than the default port 443, make a note of port number. In this example the port has been changed to '10001'
  4. Open the NP Connection associated with the failed report and update the path to the proxy with updated port. in this example port 10001 is used. (if the default port 443 is used, there is no need to add a port in the NP connection)

79773_NPProxyAddressPort.png

Next do the following

  1. Save the NPrinting connection and allow the metadata to reload
  2. Ensure that firewall (computer and network) between then NPrinting server and the Qlik Sense server are opened in both directions to accommodate the new port and port communication
  3. Preview your report and run tasks. Issue should be resolved by making this change.

 

3. Example 3 Solution:

  1. With the NPrinting Service User account, use the attempt to open the QVW used in the report connection
  2. QV Desktop shows "Personal Edition"
  3. Apply your desktop license using the 'license' tab in the QV desktop while logged on as the NP service account
  4. Use file>open in server to connect to any QVW. This will download a license from the QlikView Server while logged on as the NP service account

 

Related Information:

Comments
imrasyed
Partner - Creator II
Partner - Creator II

Thanks @Frank_S  for the KB which help me in achieving the requirement.

Version history
Last update:
‎2022-10-25 05:01 PM
Updated by: