Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hello ,
on using the command line prompt "
C:\"Program Files <x86>"\qlikview\qv.exe /r D:\Readmission\04022015\PACRN.QVW
am getting an error "Failed to open Document" as shown in Attached doc "command_line_Qvw.docx" ..
can you please me to analyze the cause and solutions.
are u created that .qvw locally? if not check whether ur having access or not?
check the qlikview installed in same path as u mentioned above?
check the .qvw avilable on same path as u mentioned on above?
if everything is correct,then place the above command shared by me in.bat file ans try to schedule through task scheduler and update me back wht kind of issue ur facing!
HI Donesh, what do you mean by this:
"am creating an Empty QVW file for the first time."
Do you mean you are actually trying to create the .qvw from .prj by using a bat file, but the QVW currently doesn't exist?
yes ..made a -Prj folder in the named path storing all QVW metadata files ( XML, BAT) and am creating a new QVW file via command line in the same path where -prj folder is stored., so that am expecting to open a new QVW file whereby it copies all codes and layout from -prj folder.
The command you are using is to open a file that already exists, it won't actually create one.
I used the same steps on a document that I knew would reload without issues. It works like a charm.
The first error you encountered seems to me about a filename mismatch. The second error ("The file name, directory name, or volume label...") only occurs if your path specification contains invalid/hidden characters.
I would suggest to try with a simplified setup. Copy your empty document and the -prj folder to a common directory like C:\Temp. Rename the QVW file so that its name contains only characters and digits. Try again until you get the reload running. At that point, it doesn't matter that the script cannot find essential data files.
Where was my head? Could it be this simple?
The < and > characters are illegal in Windows paths and filenames.
Hi Peter,
I read this that Donnesh is trying to CREATE the qvw, see above, it doesn't even exists, so how can it be opened and reloaded!
Probably a mistake in Donnesh's post. The instructions here http://community.qlik.com/message/717410#717410 (step 5) say that you have to create an empty QVW before opening & merging the -prj objects (using the command line Donnesh is fighting with) will be possible. An empy QVW with the right file name can be obtained by a simple COPY command from an existing empty QVW.
Still, whatever he tries next will surely fail due to an illegal path spec.
See the reply at 27-Feb-2015 00:29 - I ask if he was trying to create the file and the reply says yes! ![]()