Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
matKa
Contributor III
Contributor III

External program task fails without logs

In latest versions it's possible to edit external tasks in QMC. I did just like instructions above but directly in QMC. The task fails though right after running it. I can't download any logs all I get is:

 
Changing task state from Started to FinishedFail
 
ExitCode: 1
 
How can I troubleshoot this?
Labels (1)
7 Replies
Lisa_Sun
Support
Support

What type of external program? Any screen shot for replication?

 

You can follow Qlik Sense - Create an external program running a Powershell Script and do a test. 

Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up!
matKa
Contributor III
Contributor III
Author

error.jpg

 

I want to run powershell script.

paulcalvet
Partner - Specialist
Partner - Specialist

Hello,

I have the same problem, did you find the solution ?

I don't find an exemple with the parameters for launch powershell

Regards

AV1
Partner - Contributor II
Partner - Contributor II

Hi,

I'm also facing the same problem. Did you find solution ? I want to run powershell script from tasks but not sure how to do it.

francesco_menin
Partner - Creator III
Partner - Creator III

hi, I've been encountering this issue with a script that deletes files from a list stored into a CSV (which in turn is generated from a QS app).

The script works fine with an admin user from the same machine and even using the Windows Task Scheduler. 

we've been using QS Feb 2022 P3.

stijn_verhoeff
Partner - Contributor III
Partner - Contributor III

Just in case this helps someone:

When entering the path of a Powershell script into the External program task's Parameter field, make sure that neither the path, nor the script's filename itself contains any spaces. 

We created a task based on Qlik's example post, but it failed instantly with the same ExitCode1. We removed the spaces from the folders and filename, changed the Parameter value accordingly and hey presto: it worked. 

RafaelBarrios
Partner - Specialist
Partner - Specialist

Hi @matKa 

It’s an external task, Qlik Sense will not have the logs.

you have to implement the logs entries in the external application.

so, if this external application is a powershell script, your script will need to save a .log file for you 

 

hope this helps,

help users find answers! Don't forget to mark a solution that worked for you & to smash the like button! 🤗