Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creation of QVW document from command line and Getting Error "Failed to open document"


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.

18 Replies
mukesh24
Partner - Creator III
Partner - Creator III

can u please attach QVW...

Not applicable
Author

am creating an Empty QVW file for the first time.


Not applicable
Author

hi Mukesh,

am able to create a QVW file from source control provider .

  • Get latest version from source control folder <PACR_Layout>.
  • Copied all XML/DAT files of a Qlikview document from source control folder <PACR_Layout>.

·         Create a local folder with a naming model <Qlikview file name-Prj> attaching a “-Prj” Extension is a must.

e.g.  PACR is the original Qlikview document name and local folder name creation should be

“< PACR-prj>”.

·         Drop all XML/DAT files into the local folder “<PACR-prj>”.

·         Create a new empty Qlikview document by the same name (PACR.Qvw) and save it in the same path where local directory folder got saved.

·         Close the empty Qlikview document.

·         Open Qlikview document again where all objects and codes will then be copied from <PACR-prj> folder.

·         Reload the data manually.

but not able to do it via command line

mukesh24
Partner - Creator III
Partner - Creator III

why u creating .prj file?

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Make sure that the read-only flag is not set for the files you copied from your source control system.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
buzzy996
Master II
Master II

try this,

"C:\Program Files <x86>\qlikview\qv.exe"  /r "D:\Readmission\04022015\PACRN.QVW"

Not applicable
Author

am getting the command line error "Filename, Directory name or volume label syntax is incorrect."

do we have to add  the path    in evironment variable  PATH=C:\Program Files <x86>\qlikview\ '

done that , still error ...please advise

buzzy996
Master II
Master II

no need to add in env virable,

are u tried to place the same path and execute?

please share screenshot of ur command line?

tht should be work!

Not applicable
Author

Doc2.png

added the error command line screenshot