Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
JoaquinLazaro
Partner - Specialist II
Partner - Specialist II

Publisher PDF & SR6

Hi;

We'vw QlikView SR6 11.20.12354.0 with Publisher PDF.

Since we've upgraded to SR6 some tasks that previously completed succesfully, now fails with this message;

ErrorFailed to generate files. Filename=D:\ProgramData\QlikTech\DistributionService\1\temp\0ad4931f-2fec-405b-94ff-f78e943075c5\41d428cac19c482a95653ab70d650cd3.pdf. Exception=System.IO.IOException: El proceso no puede obtener acceso al archivo 'D:\ProgramData\QlikTech\DistributionService\1\temp\0ad4931f-2fec-405b-94ff-f78e943075c5\41d428cac19c482a95653ab70d650cd3.pdf' porque está siendo utilizado en otro proceso.

   en System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   en 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)

   en System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)

   en System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)

   en QVBWrapper.Document.GeneratePdfFile(ILogBucket logBucket, String reportId)

This is a sample of one task that email a PDF report to one email address, this task has been working without problems since Januray,

If I stop and start again QlikView Distribution Service and run the task again, it has completed succesfully.

Where is the problem? Is it a bug?

Thank you:
Joaquín

12 Replies
Bill_Britt
Former Employee
Former Employee

HI Joaquin,

How often does this task fail?

Do you have any antivirus software running on the server?

The error would point to something locking the file. I have seen some issues with the temp folder and you can try deleting it and letting the distribution server create a new one.

You will need to stop the distribution service and go to D:\ProgramData\QlikTech\DistributionService\1\

delete the Temp folder and restart the distribution service.

Bill


Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.
JoaquinLazaro
Partner - Specialist II
Partner - Specialist II
Author

Hi Bill:

Has started to fail last week on wednesady, the version was upgraded on May, 31.

It failed wednesday and thursday, then I restarted the service and friday worked fine; this morning failed again.

I have restarted the service and work again whitout deleting any folder.

The server has running Panda since QV v11.0

Joaquín

Bill_Britt
Former Employee
Former Employee

You might try to exclude the temp folder from the virus scan.

Bill

Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.