9 Replies Latest reply: May 12, 2010 1:02 PM by keithsmith RSS

    Reload from a VB Script Error

    Jack Mahoney

      I'm trying to schedule a task to reload my qvw. When running the script, I get this Windows Script Host error:

      Script: <Script location>
      Line: 10 (varies)
      Char: 1
      Error: The object invoked has disconnected from its clients.
      Code: 80010108
      Source: (null)

      Here is the script:

      Option Explicit

      Dim qv
      Dim qvDoc

      Set qv = CreateObject("QlikTech.QlikView")

      Set qvDoc = qv.OpenDoc("Q:\AgencyList.qvw")

      qvDoc.ReloadEx 2,1



      Set qvDoc = Nothing
      Set qv = Nothing

      What am I doing wrong? Why do I always get this issue? Sometimes, it will do the reload, then get the error leaving QlikView open without saving the app. -- The Line # changes according to where it decides to error out.

      Once it actually went all the way through the script with no issue.

      Also, is there a way for the script to run without visably opening QlikView?