Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

VBscript Automation OpenDoc fails inconsistently on one server and not another

I'm trying to accomplish something that shold be pretty straightforward -- using VBscript to open QV, load a document, save that document in place, and quit QV. (I'm doing this to create new documents from PRJ files, so if anyone knows a better way to accomplish that I'm all ears...)

The code runs fine on my dev machine running QV 11 Personal ed. But it sporadically fails in our QA server.

dim qvw_path

qvw_path = Wscript.Arguments(0)

Set QVapp = CreateObject("QlikTech.Qlikview")

Set QVdoc = QVapp.OpenDoc ( qvw_path )

REM Wscript.Sleep 2000

QVdoc.SaveAs qvw_path

REM Wscript.Sleep 2000

QVdoc.CloseDoc

QVapp.Quit

Set QVdoc = Nothing

Set QVapp = Nothing

When running on the QA server this error

load_qvw.vbs(7, 1) Microsoft VBScript runtime error: Object required: 'QVdoc'

but as I mentioned, this works reliably on my own machine. Has anyone experienced this or anything similar?

1 Reply
marcus_sommer

There could be some reasons - section access, macros, access rights, network performance ... Isn't easier to use copy/paste to create new apps?

- Marcus