<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Publisher PDF Distribution Finished with Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Publisher-PDF-Distribution-Finished-with-Error/m-p/125780#M19046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing this PDF distribution using QlikView Publisher and I'm getting this error (sorry for the long log,I also attached it to the post). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's like another task is opening some kind of shared service and the script isn't available to use it. Any clue how can I solvde this? Do I need to attach some other configuration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:15.8556863 Error Failed to generate files. Filename=C:\ProgramData\QlikTech\DistributionService\1\temp\8691f05c-bb12-4e55-bbaf-e591d355f900\5af4066b0d6f496aa7eee91e12a229a7.pdf. Exception=System.IO.IOException: The process cannot access the file 'C:\ProgramData\QlikTech\DistributionService\1\temp\8691f05c-bb12-4e55-bbaf-e591d355f900\5af4066b0d6f496aa7eee91e12a229a7.pdf' because it is being used by another process. ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QVBWrapper.Document.GeneratePdfFile(ILogBucket logBucket, String reportId)&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:15.8556863 Warning Generating Pdf file was unsuccessful.&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:15.8868864 Information Closing the document.&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:16.5264875 Information Closed the QlikView Engine successfully. ProcessID=53824&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:21.5496963 Information Retry &amp;lt;1&amp;gt; of &amp;lt;5&amp;gt; to get document package.&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:21.5496963 Error Failed to generate QVW File package.. Exception=QDSMain.Exceptions.NoDocumentPackageFoundException: No Document Package found. ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeHelper.GetDocumentPackage(ILogBucket logBucket, IDictionary`2 duplicateList, Document document, eDocumentType documentType, String url, Boolean showToolBar, String reportID, Int32 maxRetries, Int32 currentRetry) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeHelper.GrabPDFFile(ILogBucket i_LogBucket, FilePackageContainer i_ParentFilePackageContainer, String i_FileName, Dictionary`2 i_DuplicateList, Document i_Document)&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:21.5496963 Information Deleting temporary files.&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:21.6120964 Information Closing the document.&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:22.2516976 Information Closed the QlikView Engine successfully. ProcessID=61052&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:46.7102459 Error The task "Reload and Distribute of Ventas\Qvw\NMS\NMS_Resumen_Ruta_Tra_PDF.qvw" failed. Exception: || QDSMain.Exceptions.TaskFailedException: Task execution failed with errors to follow. ---&amp;gt; QDSMain.Exceptions.LogBucketErrorException: Failed to generate QVW File package.. Exception=QDSMain.Exceptions.NoDocumentPackageFoundException: No Document Package found. ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeHelper.GetDocumentPackage(ILogBucket logBucket, IDictionary`2 duplicateList, Document document, eDocumentType documentType, String url, Boolean showToolBar, String reportID, Int32 maxRetries, Int32 currentRetry) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeHelper.GrabPDFFile(ILogBucket i_LogBucket, FilePackageContainer i_ParentFilePackageContainer, String i_FileName, Dictionary`2 i_DuplicateList, Document i_Document) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.RevertOneAndAlwaysOne(Document qvbDocument) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.ReleaseQvb(Document qvbDocument) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.Distribution(String fileName, DistributionRequest distributionRequest, TaskResult taskResult, String repeatVariableName, String currentRepeatVariableValue) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace --- ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.Task.AbstractTask.TaskExecution(ILogBucket logBucket, TaskResult taskResult)&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:46.7102459 Information Task Execute Duration=01:34:44.4124046&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:46.7102459 Information Sending Alert mail&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:51.5150543 Information TaskResult.status=Finished&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:51.5150543 Information Notifying all triggers of new state:FinishedWithErrors&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:51.7802548 Information Notifying all triggers of new state:FinishedWithErrors - completed&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:51.7958548 Information Saving Task Result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2018 23:39:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-09T23:39:00Z</dc:date>
    <item>
      <title>Publisher PDF Distribution Finished with Error</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-PDF-Distribution-Finished-with-Error/m-p/125780#M19046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing this PDF distribution using QlikView Publisher and I'm getting this error (sorry for the long log,I also attached it to the post). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's like another task is opening some kind of shared service and the script isn't available to use it. Any clue how can I solvde this? Do I need to attach some other configuration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:15.8556863 Error Failed to generate files. Filename=C:\ProgramData\QlikTech\DistributionService\1\temp\8691f05c-bb12-4e55-bbaf-e591d355f900\5af4066b0d6f496aa7eee91e12a229a7.pdf. Exception=System.IO.IOException: The process cannot access the file 'C:\ProgramData\QlikTech\DistributionService\1\temp\8691f05c-bb12-4e55-bbaf-e591d355f900\5af4066b0d6f496aa7eee91e12a229a7.pdf' because it is being used by another process. ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QVBWrapper.Document.GeneratePdfFile(ILogBucket logBucket, String reportId)&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:15.8556863 Warning Generating Pdf file was unsuccessful.&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:15.8868864 Information Closing the document.&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:16.5264875 Information Closed the QlikView Engine successfully. ProcessID=53824&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:21.5496963 Information Retry &amp;lt;1&amp;gt; of &amp;lt;5&amp;gt; to get document package.&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:21.5496963 Error Failed to generate QVW File package.. Exception=QDSMain.Exceptions.NoDocumentPackageFoundException: No Document Package found. ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeHelper.GetDocumentPackage(ILogBucket logBucket, IDictionary`2 duplicateList, Document document, eDocumentType documentType, String url, Boolean showToolBar, String reportID, Int32 maxRetries, Int32 currentRetry) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeHelper.GrabPDFFile(ILogBucket i_LogBucket, FilePackageContainer i_ParentFilePackageContainer, String i_FileName, Dictionary`2 i_DuplicateList, Document i_Document)&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:21.5496963 Information Deleting temporary files.&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:21.6120964 Information Closing the document.&lt;/P&gt;&lt;P&gt;7/9/2018 17:23:22.2516976 Information Closed the QlikView Engine successfully. ProcessID=61052&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:46.7102459 Error The task "Reload and Distribute of Ventas\Qvw\NMS\NMS_Resumen_Ruta_Tra_PDF.qvw" failed. Exception: || QDSMain.Exceptions.TaskFailedException: Task execution failed with errors to follow. ---&amp;gt; QDSMain.Exceptions.LogBucketErrorException: Failed to generate QVW File package.. Exception=QDSMain.Exceptions.NoDocumentPackageFoundException: No Document Package found. ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeHelper.GetDocumentPackage(ILogBucket logBucket, IDictionary`2 duplicateList, Document document, eDocumentType documentType, String url, Boolean showToolBar, String reportID, Int32 maxRetries, Int32 currentRetry) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeHelper.GrabPDFFile(ILogBucket i_LogBucket, FilePackageContainer i_ParentFilePackageContainer, String i_FileName, Dictionary`2 i_DuplicateList, Document i_Document) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.RevertOneAndAlwaysOne(Document qvbDocument) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.ReleaseQvb(Document qvbDocument) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.Distribution(String fileName, DistributionRequest distributionRequest, TaskResult taskResult, String repeatVariableName, String currentRepeatVariableValue) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace --- ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult) ||&amp;nbsp;&amp;nbsp;&amp;nbsp; at QDSMain.Task.AbstractTask.TaskExecution(ILogBucket logBucket, TaskResult taskResult)&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:46.7102459 Information Task Execute Duration=01:34:44.4124046&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:46.7102459 Information Sending Alert mail&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:51.5150543 Information TaskResult.status=Finished&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:51.5150543 Information Notifying all triggers of new state:FinishedWithErrors&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:51.7802548 Information Notifying all triggers of new state:FinishedWithErrors - completed&lt;/P&gt;&lt;P&gt;7/9/2018 17:24:51.7958548 Information Saving Task Result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 23:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-PDF-Distribution-Finished-with-Error/m-p/125780#M19046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-09T23:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Publisher PDF Distribution Finished with Error</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-PDF-Distribution-Finished-with-Error/m-p/125781#M19047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;isn't there a backup in progress at that time ?&lt;/P&gt;&lt;P&gt;or an anti-virus ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 07:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-PDF-Distribution-Finished-with-Error/m-p/125781#M19047</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-07-10T07:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Publisher PDF Distribution Finished with Error</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-PDF-Distribution-Finished-with-Error/m-p/125782#M19048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No there is no back up running, what else shoul I check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 11:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-PDF-Distribution-Finished-with-Error/m-p/125782#M19048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-10T11:44:41Z</dc:date>
    </item>
  </channel>
</rss>

