The error suggest the problem happens when distributing the file to QVS. I would check if the QVS is having any problems at the time. Set QVS event logging to high verbosity and then check for any errors in the QVS log for the time you recive the Distribution error.
If you suspect the problem is resource related - check resource usage on the QVS machine.
You can try to increase the PDF Printer timeout and see if that helps.
To increase the PDF Printer timeout, do the following
- Locate the file settings.ini found in
Windows 2008 - C:\Windows\System32\config\systemprofile\AppData\Roaming\QlikTech\QlikViewBatch
Windows 2003 - C:\Documents and Settings\Default User\Application Data\QlikTech\QlikViewBatch
- Add the setting PDFPrintTimeoutInSeconds in the [Settings 7] section
- Save settings.ini and restart QlikView Distribution Service
Magnus - I did increase the verbosity and I checked the log file on QVS and the last few lines are below. Everything is fine, then it bombs arbitrarily on "Failed to Rename".
Bill - I put the setting you recommended in the settings.ini file and the job ran fine, however, as I mentioned above the job sometimes completes ok anyway. Not sure what it has to do with PDF Print but we'll see.
2014-04-14 20:26:44 2014-04-15 10:33:49 4 700 Information File Upload: File upload initiated (Territory/Territory 21107.qvw)
2014-04-14 20:26:44 2014-04-15 10:33:49 4 700 Information FileClose: Upload completed (Territory/Territory 21107.qvw)
2014-04-14 20:26:44 2014-04-15 10:33:51 4 700 Information File Upload: File upload initiated (Territory/Territory 21108.qvw)
2014-04-14 20:26:44 2014-04-15 10:33:51 4 700 Information FileClose: Upload completed (Territory/Territory 21108.qvw)
2014-04-14 20:26:44 2014-04-15 10:33:53 4 700 Information File Upload: File upload initiated (Territory/Territory 21109.qvw)
2014-04-14 20:26:44 2014-04-15 10:33:53 2 500 Warning FileClose: Failed to rename (Territory/Territory 21109.qvw) (A)
2014-04-14 20:26:44 2014-04-15 10:33:53 2 500 Warning File Upload: Incomplete upload of Territory/Territory 21109.qvw abandoned
When distributing to QVS, QVS first saves the file into a temporary file and then renames it into the final destination. The "Failed to rename" sounds like that rename failed for some reason.
Is there antivirus software with real time scanning on the QVS machine? You could turn it off completely for a while to see if it has anything to do with it, or if that is not possible, exclude qlikview related files & folders. We have seen real time scanning cause other files to lock so possibly that could cause something like this.
Or you could distribute to a folder location instead of distributing to QVS and that would probably help, but then no meta files would be created so if QVS is in DMS mode there would be no user rights assigned.
You were correct. I had our internal security exclude the distribution folders from the corporate anti-virus software and there haven't been any subsequent failures. It does, however, beg the question: I was running the same job on a Windows Server 2003 machine running QVS version 10 and never had a problem. Only when I switched to a Windows Server 2008 machine running QVS version 11.2 did this problem occur. The same anti-virus software runs on both machines. Strange.
Thanks for your answer to this discussion.
I'm experiencing something similar, but far more sporadic. It's impacting applications at various times of the day.
I've seen the "Failed to rename" warning occurring in the QVS logs on the server running Publisher, but there isn't any Anti-Virus software running or accessing any of the Windows 2008 R2 servers running QlikView.
Any thoughts as to other possible causes?
We are reloading and distributing 165 documents with various schedules. Approximately 1800 reloads per day, as some documents are reloaded every 15 minutes.
Any thoughts would be appreciated,