Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
danosoft
Specialist
Specialist

Reload works, but qv.exe (qv 11) doesn't shut down afterwards

Hi i use a batch .bat for reload my document and with a macro generate and send a PDF file.

All is ok when i execute the .bat stand alone or with  task scheduler of windows, but i have some problems, the dos command not closed and the Qv.exe not shut down, and this make some problem after i execute more .bat.

This is my qlikview:immagine.png

 

and this is the script in the bat (not closed):  immagine.png

and this is the process:

immagine.png

 

 

 

3 Replies
Brett_Bleess
Former Employee
Former Employee

You will need to launch things via a CMD.exe -c call in order to shutdown the CMD dialog etc.  In order for the /r on the QV.exe to work you would need to pull that from the .bat file and put that directly in your Windows Scheduled Task call, then it should work as expected...  Either way should work I believe, but if you are running the macro with an OnPostReload trigger, that may be problematic in this case, as the /r on QV.exe will be trying to shut things down and conflicting with the OnPostReload trigger call, just FYI.  

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
danosoft
Specialist
Specialist
Author

Sorry but i not understand what you mean....

my .bat inside have this: 

"C:\Program Files\QlikView\qv.exe" /l /NoSecurity "C:\ProgramData\QlikTech\Documents\Report.qvw"
Exit

From last time i changed /r with /l

It work good often but sometimes made me that problem... yes running the macro with an OnPostReload trigger in my project

how i need to change my command for make that you wrote?

thanks

 

Brett_Bleess
Former Employee
Former Employee

Aha, I see the problem here, you are using the /l parameter, that will not end things, so the only means of doing things would be to try the CMD.exe /C option in front of your command line call such that that should detect when activity has stopped and close things out I believe, but I am not certain this is going to work. 

Please review the following Help info, /r is the only parameter that closes things down....

https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Starting_QlikVi...

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.