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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

WaitForIdle stops script. Why ?

Good day,

I'm using VB script to export some data from my QV application.

My export is simple :

-Make the selection
- ActiveDocument.GetApplication.WaitForIdle
- Activate sheet of the graph
- ActiveDocument.GetApplication.WaitForIdle
- Export

This works fine on small applications.

Unfortunately, when I do so on a big application, the "ActiveDocument.GetApplication.WaitForIdle" statement stops the script.

If I try to catch the error with this code :


on error resume next
ActiveDocument.GetApplication.WaitForIdle

if err.number <> 0 then
MsgBox "Error number:" & Err.Number & " ; Description : " & Err.Description
end if


I have the following :

error loading image

Is there a way to avoid this error ?

How can I wait for my application to be "ready to export" ?

4 Replies
Not applicable
Author

Hi, I get the same problem.  Did you find a solution?

Only seems a problem in v10, v9 this worked perfectly

Anonymous
Not applicable
Author

Hi guys,

I get the same problem on V10. I didn't check on V9.

I think that's a bug.

Anyway, I tried this like you posted :

on error resume next

     qvDoc.GetApplication.WaitForIdle

and just that, I don't catch the error and the export is working...

I know that not really nice to do that and it doesn't fix the bug but the export is working like this...

I will look for an answer later.

Not applicable
Author

Classification: For internal use only

Hi,

I solved this by just putting a timeout value after WaitForIdle, e.g.

qvDoc.GetApplication.WaitForIdle 1000

Worked perfectly.

Matt

adurquety <qliktech@sgaur.hosted.jivesoftware.com>

16/09/11 04:50 AM

Please respond to

jive-1047103270-5er-2-37lz@qliktech.hosted.jivesoftware.com

To

Matthew Overy/db/dbcom@DBAPAC

cc

Subject

- Re: WaitForIdle stops script. Why ?

QlikCommunity

Re: WaitForIdle stops script. Why ?

created by adurquety in Development (QlikView Desktop) - View the full

discussion

Hi guys,

I get the same problem on V10. I didn't check on V9.

I think that's a bug.

Anyway, I tried this like you posted :

on error resume next

qvDoc.GetApplication.WaitForIdle

and just that, I don't catch the error and the export is working...

I know that not really nice to do that and it doesn't fix the bug but the

export is working like this...

I will look for an answer later.

Reply to this message by replying to this email -or- go to the message on

QlikCommunity

Start a new discussion in Development (QlikView Desktop) by email or at

QlikCommunity

© 1993-2011 QlikTech International AB Copyright & Trademarks | Privacy

| Terms of Use | Software EULA

---

This e-mail may contain confidential and/or privileged information. If you

are not the intended recipient (or have received this e-mail in error)

please notify the sender immediately and destroy this e-mail. Any

unauthorized copying, disclosure or distribution of the material in this

e-mail is strictly forbidden.

Not applicable
Author

Hi! Where I can see to kwon how does "waitForIdle" mean? I'm new in vbscript...

Thanks