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

Command line reload

Hello,

I need to relaod a qvw file with a batch that will be launch from $U.

Two questions :

1/ Will it work without any user's session open on the server ?

2/ How to get e return code OK or KO from the qv.exe /r command line : I need to pass a return code to $U.

Many thanks,

6 Replies
Not applicable
Author

1° It will work without a user logged on if you specify an authorized user in the run as field in Task scheduler. ( to be sure it is working run it the first time when you are connected on the server as the user).

2) If you want the return code, there is two choices: If you have Qlikviex developper on the machine, you can activate the log and check the last line of the log via a script.

Or you can generate a table in Qlikview containing the errors ( see error handling in tutorial) Then store this table into a text file. Then you send the result of this table to your scheduler.

Hope this is clear enough for you.

Rgds,

Sébastien

Not applicable
Author

Thanks for your quick answer, I'm sorry I cant' understand everything in your first answer :

What do you mean by Task Scheduler, is that in $U or Qv or System ?

Not applicable
Author

I assume he is talking about the "scheduled tasks" in the Control Panel. When you schedule your .bat files to run at certain times there you can select which user the batch job should be run as. Then you don't have to be logged in for it to run.

Not applicable
Author

Ah ok, but it won't be launch by the scheduled tacks, it will be launch by $U which ordonates tasks on differents servers (Unix server, windows, linux a lot of servers)...

Not applicable
Author

I was talking about Windows task schedulerI don't know $U but I guess settings are similar .

Not applicable
Author

Ok. Then I have no clue. Sorry.