Karim, you say that if you reload the document in QV Desktop (thereby implying that you save after a reload), the batch file runs ok. That means that a desktop reload will set different permissions on the saved file, after which a QDS reload will be able to overwrite the saved document.

Apparently in the script log you posted, the QDS has problems saving either the temporary file or the end result. That is, if the GROUP BY statement is the last statement in your load script.

Qlikview developpers cannot have access to the server. It is security / policital / stupid ? internal policy. Anyway, they cannot connect to run manually the reloads and this absolutely not possible to change that (even if I would like to) , but they need to reload the application when they want.

So, I have created the command file for the reload, so the developpers can just send a trigger file to the serveur to execute the script.