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?