I have noticed If any user is using a document and same time If you try to publish it, It is failing. There is any way to forcedly Publish a application even users are using it.
If possible How to do this? What setting need to change?
Solved! Go to Solution.
Just to update,
I deleted the file Order.qvw from \\ABC\QLIKSHARE\Destination_QVW and then published to this folder and now no error.
So what could be the reason?
Could you clarify what you are actually doing?
What do you mean "Publish"? Do you use Publisher to do it or are you just copying a new version of document to the server?
Can you please elaborate on the Publisher failing.
Whats the failure message?
What does the log say?
I guess you are talking about a QVW document that is either
Both situations lead to locking errors. A published document that is not being held open by a Desktop user, will always allow publication of a newer version. You can even configure what should happen with the document that is open in the access point.
You are right. I am using Publisher to publish my documents.
I have 2 folder Structure. Source_QVW, where my original QVWs are located and Re-load is happening in this folder. Then I am publishing to server as well as another Folder called Destination_QVW. This holds published qvw files.
I am not sure that someone had opened the file from Source_QVW or not but I will recheck and the post it.
That's weird. If only the Publisher is manipulating QVW's (meaning that noone else has a source/destination QVW locked), there shouldn't be any failure.
As Rajesh already asked, what does the Publisher log say? (check/post TaskLog.txt, but before that, set QDS Logging Level to Debug logging in QMC)
The documents you are trying to post should only be used through the access point. Users should not be using them with the desktop client. QVS will open and load the document in memory and so publishing to the location QVS uses (Root Folder) should not be an issue.
Again It failed. So It is Not able to Save the File at Destination Folder Destination_QVW but It published on Server.
I get this error only Daytime I means when some one is using it.
Below is the Error:
(2015-05-06 17:32:14) Error: File write failed: System.IO.IOException: Cannot create a file when that file already exists. || || at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) || at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost) || at QlikTech.FileSystem.IO.File.CopyFile(Stream i_SourceStream, String i_TargetFileName, eFSSecurityMethod i_eFSSecurityMethod, List`1 i_Permissions)
(2015-05-06 17:32:15) Error: Failed to copy file. FileName=Order.qvw
(2015-05-06 17:32:15) Error: (2) Failed to copy files into folder: \\ABC\QLIKSHARE\Destination_QVW
(2015-05-06 17:32:15) Error: Distribution to resources failed with errors. Warnings: 7, Errors: 3
I'm assuming that the source code of the QDS specifies overwrite=true for this operation (otherwise it would be a bug), so this error is probably thrown because of wrong permissions or a locked QVW.
Check the permissions of \\ABC\QLIKSHARE\Destination_QVW\Order.qvw. Does the service account of the QDS have Fuill Control-access to that file (the best thing for this account is to inherit these rights from the parent object, i.e. the directory). Can you reduce the permissions of this directory so that only QDS and QVS have access to these files? Just to test whether someone else/some other process tries to lock the file? Is there a virus scanner running on these directories?
Is this folder local or on the network? Are you doing a server distribution are a folder distribution?