The default timeout (120 s) may need to be increased for the PDF printer, when doing a PDF distribution.
In case of a timeout when distributing, the following error may occur in the task log:
(2012-02-06 09:30:25) Error: Could not print report.
ErrorCode=PRINTER_UNKNOWN_ERROR. ReportID=Document\RP02
(2012-02-06 09:30:30) Information: Retry <1> to get document package.
(2012-02-06 09:30:30) Error: Could not print report.
ErrorCode=PRINTER_UNKNOWN_ERROR. ReportID=Document\RP02
(2012-02-06 09:30:35) Information: Retry <2> to get document package.
(2012-02-06 09:30:35) Error: Could not print report.
ErrorCode=PRINTER_UNKNOWN_ERROR. ReportID=Document\RP02
(2012-02-06 09:30:40) Information: Retry <3> to get document package.
(2012-02-06 09:30:40) Error: Could not print report.
ErrorCode=PRINTER_UNKNOWN_ERROR. ReportID=Document\RP02
(2012-02-06 09:30:45) Information: Retry <4> to get document package.
(2012-02-06 09:30:45) Error: Could not print report.
ErrorCode=PRINTER_UNKNOWN_ERROR. ReportID=Document\RP02
(2012-02-06 09:30:50) Information: Retry <5> to get document package.
(2012-02-06 09:30:50) Error: Failed to generate QVW File package..
Exception=System.NullReferenceException: Failed to get document package from QVB after < 5 >
(2012-02-06 09:30:50) Error: at QDSMain.DistributeHelper.GrabPDFFile
Resolution:
To increase the PDF Printer timeout, do the following
- Locate the file settings.ini found
in C:\Windows\System32\config\systemprofile\AppData\Roaming\QlikTech\QlikViewBatch
- Add the setting PDFPrintTimeoutInSeconds in the [Settings 7] section
[Settings 7]
PDFPrintTimeoutInSeconds= 120
- Save settings.ini and restart QlikView Distribution Service