Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
kris_vliegen
Partner - Creator III
Partner - Creator III

Scheduled bat-file is not working!

Hi All,

I've created a bat-file that reloads a qlikview-document with macro's to create a PDF and XLS and send via mail.

"C:\Program Files\QlikView\qv.exe" /R "C:\Document.qvw"

If I execute the bat-file (double click) it's working fine.

If I try to start the bat-file via the windows-scheduler it is not working...

Who can help me with this?

Regards,

Kris

1 Solution

Accepted Solutions
syukyo_zhu
Creator III
Creator III

Can you try to create a task like this?

qlik.png

View solution in original post

7 Replies
Clever_Anjos
Employee
Employee

Any error generated?

What is the last result code?

kris_vliegen
Partner - Creator III
Partner - Creator III
Author

This is what I see in the History of the event-log.

Where can I find the error's generated?

schedeling.JPG

syukyo_zhu
Creator III
Creator III

hi,

if you execute "C:\Program Files\QlikView\qv.exe" /R "C:\Document.qvw" on commande ligne?

Can you tell me what do you get?

kris_vliegen
Partner - Creator III
Partner - Creator III
Author

Then he creates the PDF, the xls and send it via Mail.

If I excecute teh command on the commend-line or I excecute the bat-file, everything is working.

If I schedule the bat-file it is not working...

vikasmahajan

you need to add  user  in  administrator group please follow the steps given in linkWindows Task Schedular.docx

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
syukyo_zhu
Creator III
Creator III

Can you try to create a task like this?

qlik.png

jonathandienst
Partner - Champion III
Partner - Champion III

Scheduler runs under its own account which may be different to your user account. Check that the scheduler account has access to all the resources required by the task.

Also, if the task uses any mapped files, these will only work if there is someone logged on interactively using the same account when the scheduled task fires. Scheduler does not create the mappings itself.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein