Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
EIndriksonsRD
Contributor II
Contributor II

Qlik Sense Tasks Scheduler - How to run external program Python script

Hey guys, I have a Python script that needs to be automated and I tried to do it from Qlik Sense QMC Task Scheduler by running an external program, like this:

EIndriksonsRD_0-1651734346599.png

But unfortunately the task fails because of "Access Denied":

EIndriksonsRD_1-1651734418005.png

What could be the problem? Is it even possible to run a python script with QMC Task Scheduler?

I tried running the script from several other locations and all of them failed. Including running them from qlik server and admin user folder directories.

 

 

Labels (3)
2 Replies
Frank_S
Support
Support

Without getting too deep in the weeds here, I'm going to suggest having a look at these articles. 

It appears you can use python scripts however these articles might provide the insight you need to execute your specific need and other requirements.

 

Kind regards...

 

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
EIndriksonsRD
Contributor II
Contributor II
Author

Awesome, I was not aware you can use Execute statements in Load scripts. This is a clear work-around.

But here I'm talking about QMC Task Scheduler "External program task", which was if I'm not mistaken introduced only very recently. I can successfully execute .bat files, but cannot do the same with Python files. I think I might have narrowed down the cause of the problem to user permissions. Perhaps the Qlik user does not have permissions to run Python scripts and that might be the issue, but I'm not sure.