Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Ajax print PDF with error Timeout has been exceeded

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

Ajax print PDF with error Timeout has been exceeded

Last Update:

Jul 5, 2021 8:23:27 AM

Updated By:

Sonja_Bauernfeind

Created date:

Oct 18, 2015 7:03:36 AM

Attachments

When trying to generate a PDF report in Ajax, the error 'Time out has been exceeded' is appearing.
Or same Time out is present in logs of  Distribution PDF Tasks followed by :   
"Error    The task "PDFSaver" failed. Exception: || QDSMain.Exceptions.TaskFailedException: Task execution failed with errors to follow. ---> QDSMain.Exceptions.LogBucketErrorException: Failed to generate QVW File package.. Exception=QDSMain.Exceptions.NoDocumentPackageFoundException: No Document Package found."

 

Environment:

QlikView 

 

  • Improperly installed PDF-XChange 3.0 may cause this issue
  • PDF-XChange 3.0 is used outside of QlikView server could cause this issue. In that case, killing pdfSaver3.exe should fix it.

 

Resolution:

 

If this error only occurs after a determined set of time, it could be caused by timeout settings. In this case:

  1. Stop the QVS service
  2. Edit the settings.ini file in C:\ProgramData\QlikTech\QlikViewServer
  3. Add the line

    PDFPrintTimeoutInSeconds=120
    in the [Settings 7] section

  4. Save the file and restart the QVS



If the issue happens:
 

  1. Reinstall PDF X-Change 3 (PDF printer used by QlikView Server)
    • If you have a multi-server environment, PDF Printer will only be installed on the server hosting the Distribution Service by default.
    • You can install it manually by downloading the installer. See this artile for instruction:
    • PDF-Exchange 3 Installation
  2. Kill pdfSaver3.exe
    • Go through all the servers and kill all running "pdfSaver3.exe" from Task Manager. The attached batch file could be used to do it quickly.
    • Avoid manually print via "PDF-XChange 3.0" printer.
Labels (1)
Comments
john_oll
Partner - Creator
Partner - Creator

FYI:
There might be a problem with the solution of reinstalling PDX XChange 3 , due to/since the "print nightmare" fix by Microsoft. We are still investigating.
For details view my post under
https://support.qlik.com/articles/Basic/PDF-Exchange-3-Installation

john_oll
Partner - Creator
Partner - Creator

Follow up1: 
We saw this error on a 12.50, since security measures prevented the installation of the PDF XChange driver, but IT was able to install it, which fixed the problem.

Follow up2:
On a different server on QV 12.60 on Windows 2012, we also see this error at the moment, although Spooler Service is running and PDF XChange is installed correctly. We did not yet investigate further.

p_verkooijen
Partner - Specialist
Partner - Specialist

@john_oll not sure if you noticed.

QV12.6 uses the Microsoft Print to PDF, however Windows Server 2012 lacks the printer Microsoft Print to PDF and therefore you get the timeout. It cannot start the print to PDF

Worst thing here is cannot install Microsoft Print to PDF on a Windows Server 2012 so Qlik has eliminated the possibility to Print reports using the access point.

chacha123
Contributor
Contributor

Hi all, has there been a resolution on this? We are experiencing the exact same issue (with the same set up) as P_verkooijen has mentioned in the comment.

Windows 2012 server with no Microsoft Print to PDF, however QV12 needs it. So all print jobs time out because print to PDF cannot be started

p_verkooijen
Partner - Specialist
Partner - Specialist

Hi @chacha123,

 

Yes there is 

For 12.60 SR1 You can use DefaultPDPrinterName=PDF-XChange 3.0 

For all versions after that it is changed to DefaultPDFPrinterName=PDF-XChange 3.0

See https://community.qlik.com/t5/Official-Support-Articles/Print-Report-to-PDF-via-Ajax-Client-with-err...

 

Contributors
Version history
Last update:
‎2021-07-05 08:23 AM
Updated by: