Qlik Community

QlikView Publisher

Discussion Board for collaboration on QlikView Publisher.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

stabben23
Honored Contributor

PDF task fails

Hi, after a increase from 4 to 8 CPU in A VM-Ware enviorment there is no longer possible to run PDF tasks. (2014-02-05 13:01:52) Error: Could not print report. ErrorCode=PRINTER_NOT_FOUND. ReportID=Document\RP01(2014-02-05 13:01:52) Error: Could not save document stream to disk.. Exception=QVBWrapper.Exceptions.PdfPrintRetryException: Failed to print pdf.(2014-02-05 13:01:52) Error:    at QVBWrapper.Document.GeneratePdfFile(ILogBucket logBucket, String reportId)(2014-02-05 13:01:52) Error:    at QVBWrapper.Document.GetStream(ILogBucket i_LogBucket, eDocumentType i_DocumentType, String i_URL, Boolean i_ShowToolBar, String i_ReportID)(2014-02-05 13:01:52) Information: Closing the document.(2014-02-05 13:01:52) Information: Closed the QlikView Engine successfully. ProcessID=7512(2014-02-05 13:01:57) Information: Retry of to get document package.(2014-02-05 13:01:57) Error: Failed to generate QVW File package.. Exception=QDSMain.Exceptions.NoDocumentPackageFoundException: No Document Package found.(2014-02-05 13:01:57) Error:    at QDSMain.DistributeHelper.GetDocumentPackage(ILogBucket logBucket, IDictionary`2 duplicateList, Document document, eDocumentType documentType, String url, Boolean showToolBar, String reportID, Int32 maxRetries, Int32 currentRetry)(2014-02-05 13:01:57) Error:    at QDSMain.DistributeHelper.GrabPDFFile(ILogBucket i_LogBucket, FilePackageContainer i_ParentFilePackageContainer, String i_FileName, Dictionary`2 i_DuplicateList, Document i_Document)(2014-02-05 13:01:57) Information: Deleting temporary files.(2014-02-05 13:01:57) Information: Closing the document.(2014-02-05 13:01:58) Information: Closed the QlikView Engine successfully. ProcessID=7780(2014-02-05 13:01:58) Error: The task "Failure Report" failed. ExceptionSmiley Sad2014-02-05 13:01:58) Error: QDSMain.Exceptions.DistributionFailedException: Distribute failed with errors to follow. ---> QDSMain.Exceptions.LogBucketErrorException: Failed to generate QVW File package.. Exception=QDSMain.Exceptions.NoDocumentPackageFoundException: No Document Package found.(2014-02-05 13:01:58) Error:    at QDSMain.DistributeHelper.GetDocumentPackage(ILogBucket logBucket, IDictionary`2 duplicateList, Document document, eDocumentType documentType, String url, Boolean showToolBar, String reportID, Int32 maxRetries, Int32 currentRetry)(2014-02-05 13:01:58) Error:    at QDSMain.DistributeHelper.GrabPDFFile(ILogBucket i_LogBucket, FilePackageContainer i_ParentFilePackageContainer, String i_FileName, Dictionary`2 i_DuplicateList, Document i_Document)(2014-02-05 13:01:58) Error:    at QDSMain.DistributeTask.RevertOneAndAlwaysOne(Document qvbDocument)(2014-02-05 13:01:58) Error:    at QDSMain.DistributeTask.ReleaseQvb(Document qvbDocument)(2014-02-05 13:01:58) Error:    at QDSMain.DistributeTask.Distribution(String fileName, DistributionRequest distributionRequest, TaskResult taskResult, String repeatVariableName, String currentRepeatVariableValue)(2014-02-05 13:01:58) Error:    at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)(2014-02-05 13:01:58) Error:    --- End of inner exception stack trace ---(2014-02-05 13:01:58) Error:    at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)(2014-02-05 13:01:58) Error:    at QDSMain.Task.AbstractTask.TaskExecution(ILogBucket logBucket, TaskResult taskResult)(2014-02-05 13:01:58) Information: Task Execute Duration=00:00:31.3687900(2014-02-05 13:01:58) Information: TaskResult.status=Finished(2014-02-05 13:01:58) Information: Notifying all triggers of new state:FinishedWithErrors(2014-02-05 13:01:58) Information: Notifying all triggers of new state:FinishedWithErrors - completed(2014-02-05 13:01:58) Information: Saving Task Result

1 Solution

Accepted Solutions
Support
Support

Re: PDF task fails


Hi,

The error PRINTER_NOT_FOUND. means there is an issue with the PDF printer and most of the time it is caused by the Windows Printer spooler being disable. If it was disable during server installation it will not work when you enable it. You will need uninstall  PDF Exchange and reinstall it.

Go to Windows Services

  • Locate the Print Spooler service
  • Make sure Startup type is set to: Automatic and the service is started

User-added image

Turning of Print Spooler service will generate similar errors. This service must be running for PDF XChange to work

Bill

Bill - Designated Support Engineer at Qlik
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.
8 Replies
Support
Support

Re: PDF task fails


Hi,

The error PRINTER_NOT_FOUND. means there is an issue with the PDF printer and most of the time it is caused by the Windows Printer spooler being disable. If it was disable during server installation it will not work when you enable it. You will need uninstall  PDF Exchange and reinstall it.

Go to Windows Services

  • Locate the Print Spooler service
  • Make sure Startup type is set to: Automatic and the service is started

User-added image

Turning of Print Spooler service will generate similar errors. This service must be running for PDF XChange to work

Bill

Bill - Designated Support Engineer at Qlik
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.
stabben23
Honored Contributor

Re: PDF task fails

Many Thanks Bill, The Printer Spooler was not Started.

The tasks just run fine now!

//Staffan

Not applicable

Re: PDF task fails

Hi Bill,

Thanks for the heads up on this matter.

I have a very similar issue, in the application on the accespoint, the user has the ability to print the pdf via a button.

When this is done, the daily automatic distributions fails giving almost the exact error message in the log.

When a server restart is done, the automatic distributions works just as expected.

I am not sure whether this manually print button is the cause of my problem, but I don't think it was just a coincidence since it didn't give me the PDF.

So by your previous answer, I think this is also related to the printer spooler. Somehow it seems like the button perhaps is causing the printer spooler to go down. 

The really troubling part is that there are other qvw's who have the same button functionality, and theese does not seem to cause this problem.

Do you have any ideas on what to do to prevent this further on? Can this be a version issue? (pdf-xchange)

The settings of the buttons does not seem to differ.

Regards

Tobias

Not applicable

Re: PDF task fails

I am getting same issue . printer spooler service is running .

need your help in this.

prabhu0505
Valued Contributor

Re: PDF task fails

Hi Bill,

Do you know, why this software is not available in downloads section of the Qlikview site?

One more thing, prompted me for license key while installation I ignored that but still it worked. Is that obvious behaviour?

Advance Thanks for clarifications..

Support
Support

Re: PDF task fails

They pulled it a year or so ago. Here is the link for it.

http://d1cf4w4kkla6tb.cloudfront.net/pdf/9.00/7119/_MSI/QvPDFSetup.exe

I think so about the license key.

Bill

Bill - Designated Support Engineer at Qlik
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.

Re: PDF task fails

Hi,

There is no issue with license.

It will work without entering License key, nothing to worry.

Regards

ASHFAQ

Support
Support

Re: PDF task fails

Hi,

If the printer spooler service was disabled when you did the install, you will need to uninstall and reinstall pdf software.

Bill

Bill - Designated Support Engineer at Qlik
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.