Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
will_br
Contributor III
Contributor III

exportPdf error after switching apps (Uncaught (in promise) {code: 2})

Hi, can anyone assist me with this error?

Every time I try to export a PDF or Image file it goes perfectly but when I close and open another application I keep getting this error.

I've checked and the application is really changing from one to another. If I switch it back, it exports ok again.

The error is pretty concise and not much informative: error{code: 2}

...

const currentVisualization = await activeApp.visualization.get(visualizationId);
const pdfUri = await currentVisualization.exportPdf(pdfExportSettings); //<- error thrown
 
...
 
We are using Feb 2019 version.
Labels (1)
1 Reply
will_br
Contributor III
Contributor III
Author

Nobody answered here but it's an ongoing discussion on this thread:
https://community.qlik.com/t5/Qlik-Sense-Integration-Extensions-APIs/Qlik-Sense-exportImg-not-workin...