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

Generate report fail using Nprinting

I created a report using Npriting and Qlik Sense.

The report with third part extension (Qwidget).

My Qlik Sense version is 2017 June 11.11

My Nprinting version 17.4.

When preview or run the report task. Error as following.

Failed report generation for report c9b2ca9d-37c2-411b-8de6-e08e16e07262 user f2f358ed-617c-404f-a569-b7f6b1c43b5c exception Qlik.Reporting.Reports.Tree.Exceptions.FailedReportException: Report generation failed. Error in node of type Qlik.Reporting.Reports.Tree.Template.ImageNode for request 0d332f33-e715-4bbe-807f-ae242eadda31 CefSharp Exception. Remote code could not be executed, error: The operation was canceled.. Failed object: O\RFUgFL Template id: RFUgFL, template level: root Request filter: Filters: [], Bookmark: , Void: False at Qlik.Reporting.Reports.Tree.Template.TemplateLeafNode`5.ApplyFailure(FailureContentNodeResponse response, TcTransformationContext transformationCtx) at Qlik.Printing.Trees.TcTransformation.ApplyResponse(IContentNodeResponse response) at Qlik.Printing.TreeTransformationService.Process(IReportRequest reportRequest, IContentNodeResponse contentNodeResponse)

1 Solution

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Qlik NPrinting does not support the exporting or printing of visualization extensions that use:

  • External resources.
  • Internal and undocumented JavaScript modules or APIs.


looks like your extension is using external resources:Remote code could not be executed, error: The operation was canceled

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.

View solution in original post

9 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

did you read this topic?

https://help.qlik.com/en-US/nprinting/June2017/Content/MultiDocument/UsingSenseThirdPartyExtensions/...

There are requirements around extensions which have to be fulfiled before you can use them with NPrinitng. If they are not met then we cannot do anything.

----------------------------------------------------------------------------------------------------------------------------------------------

Creating a report using Qlik Sense third-party extensions

As of Qlik NPrinting June 2017, you can use Qlik Sense third-party extensions inside Qlik NPrinting reports as images, tables, and levels.

See: Visualization extensions

Requirements

As of the Qlik Sense June 2017 release, all objects that have been added to a sheet can be used as images. Qlik NPrintingdoes not distinguish between native visualizations and extensions. However, for a third-party extension to render correctly, the JavaScript implementation of the extension needs to fulfill certain requirements. In particular, the extension must implement the "finished rendering" notification.

A third-party extension can be used as a table if:

  • The object contains exactly one hypercube.
  • The hypercube is either straight or stacked.

A third-party extension can be used as a level if:

  • The properties of the object contain exactly one hypercube.
  • The hypercube is either straight or stacked.
  • The hypercube has at least one dimension.
  • The hypercube contains no calculated or grouped dimensions.

Qlik NPrinting does not support the exporting or printing of visualization extensions that use:

  • External resources.
  • Internal and undocumented JavaScript modules or APIs.

Setting up a "finished rendering" notification

To export your third-party extension as an image, you must use the paint method to inform Qlik NPrinting that the extension has finished rendering. Otherwise, you could have blank or partially rendered images.

// ..., paint : function() { return qlik.Promise.resolve(); } // ...

See: Enabling export of your visualization extension

----------------------------------------------------------------------------------------------------------------------------------------------


btw. Does your NPrinting report work if you remove extension object from its template?

cheers

Lech

---------------------------------------------

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 as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Not applicable
Author

Thanks for your information.

But what I can do for inform Qlik NPrinting that the extension has finished using following.

// ..., paint : function() { return qlik.Promise.resolve(); } // ...

Not applicable
Author

I'm using the exention qWidget_0.26.00

Not applicable
Author

It works if I remove this object.

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Qlik NPrinting does not support the exporting or printing of visualization extensions that use:

  • External resources.
  • Internal and undocumented JavaScript modules or APIs.


looks like your extension is using external resources:Remote code could not be executed, error: The operation was canceled

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

So you know it is extension - why do you want to use extension in NPrinting?

can't it be replaced with something else, like formula, variable or embeded object?

regards

Lech

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Not applicable
Author

I need to use it like HTML table.

Make the page can be customized by using css and HTML.

1.png

Not applicable
Author

So you mean nothing I can do.

Unless change the report to using the standardize one?

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

What NPrinting template are you using? HTML?

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.