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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
chrweber
Creator
Creator

Command Line Reload Supress Dialog

Hi, I wish to open and reload a qv document via cmd.

However the application must not promt for user interaction in case of failure.

How can I supress the dialog box.

Regards

10 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Maybe by adding this simple statement to the beginning of your load script?

SET ErrorMode = 2;

See also here: ErrorMode - QlikView

chrweber
Creator
Creator
Author

I am talking no document.

...\QV.exe /r IdoNotExist.qvw

That means there is no loadscript

Peter_Cammaert
Partner - Champion III
Partner - Champion III

I'm not following. You're trying to reload a document that doesn't exist?

chrweber
Creator
Creator
Author

Yes, for whatever reason there might be.

But I want do do it automated, without having to acknowledge via mouse click

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Sorry, no idea.

Usually I'm very happy that QV Desktop does the sensible thing and complains about being asked to do something which it can't. Not sure if & how you can disable that behavior.

chrweber
Creator
Creator
Author

Thank you for your time

PrashantSangle

Hi,

Can you explain little bit about your requirement??

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
chrweber
Creator
Creator
Author

The reload is executed using via another users task, which means automated.

And because the task is executed by another user (hidden) there is no feedback as the dialog box is neither propagated nor acknowledged via cmd)

Hence my question:

How can I supress the dialog and get another form of error when typing

...\QV.exe /r IdoNotExist.qvw

marcus_sommer

It's not really clear for me what you are trying to do and which aim it had.

Within a load you could use the feature of ERRORMODE like Peter hinted to ignore failures and/or if any is detected to exit the script or to do other things maybe even to kill the process.

Cases in which the qvw didn't exists could you catch with some logic in beforehand of executing this batch or probably within the same batch. An alternatively might be also to use vbs instead of the cmd-line because it's more flexible and quite heavier in the functionalities.

- Marcus