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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

external program task

Hello 
I'm working on Qlik Sense
there is an .EXE file which runs successfully if I double-click on it
Now I want to create an external program task to run this exe file on schedule

I put in the path the location which is local d:\app\app.exe
when I run the task it fails and I cannot know what might be wrong
is there a way to know what the error is?
knowing that in Qlik Sense there is no way to see a log file for external program tasks

I can walk on water when it freezes
Labels (1)
1 Reply
peter_ku
Partner - Contributor
Partner - Contributor

I had the same issue and could not directly run a .exe file using an external program task. I ended up wrapping it in a .bat file to execute it. This way, I also have the possibility to log something in order to see if the .bat/.exe file is actually executed or not.

In your example I'd put the folloging code to a new file app.bat in the same directory as app.exe (i.e. D:/app/)

 

set LocalPath=D:\app\

echo %date% %time% - Started app.bat >> %LocalPath%/app.log
%LocalPath%/app.exe >> %LocalPath%/app.log
echo %date% %time% - Finished app.bat >> %LocalPath%/app.log

 

Inside the external program task, I set the following:

Path = D:\app\app.bat (and left the parameters setting empty).

Hope it helps.