Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Not applicable

Mail on task failure in Qlik sense

Hi,

Is it possible to send mail automatically from QMC when scheduled reload task gets failed in Qlik sense.

If yes please provide the steps to do so.

Thanks in advance,

Rajamani

Tags (2)
13 Replies
korsikov
Valued Contributor II

Re: Mail on task failure in Qlik sense

I have not heard about this opportunity. Perhaps it is in the road map server

haty
New Contributor III

Re: Mail on task failure in Qlik sense

We are very keen to see this feature added to Sense also.

henrikmatz
Contributor II

Re: Mail on task failure in Qlik sense

We would like this feature also.

It's pretty dificult to monitor errors in app's if you don't get notifications.

rsvebeck
Valued Contributor

Re: Mail on task failure in Qlik sense

This is very important for us. We have jobs running 24/7 in our current Publisher and we can not have staff monitoring possible failed reloads. Show stopper for a possible migration to Sense.

But thread is old - is it still not developed in Sense?

undergrinder
Valued Contributor II

Re: Mail on task failure in Qlik sense

Hi Rajamani,

It isn't possible directly through QlikSense, but you can implement a workaround.

As far as I know reddys310‌, has an example for this.

I think the following methods can work:

  • Catch errors in script (set Errormode = 0, and use errorcode variable)
  • If you get an error then it create a batch file with errormessage, and with call an 3rd party email tool (or your own email tool)
  • Execute this batch

Or you can sniff in logs by custom implemented program.

I don't know, whether the repository database does contain this information. If yes, it is easier listen to the database.

G.

henrikmatz
Contributor II

Re: Mail on task failure in Qlik sense

It's good that Qlik has an API to code against. But it's sad, that functionality like this is not standard.

For an entreprise environment warnings are a must, we can't have an employee following up on this each morning.

If we need to code everything as API-calls the ROI of Qlik Sense fades out. It's very time consuming and expensive to make C# code and to understand the possibilities with the API's in Qlik Sense.

In my opinion this is a feature that must be standard.

rsvebeck
Valued Contributor

Re: Mail on task failure in Qlik sense

Thanks Rajamani, but our Publisher setup holds something like 1000+ tasks, and we have around 500+ documents. We need this in standard if we will ever move the complete installation to Sense.

reddys310
Honored Contributor II

Re: Mail on task failure in Qlik sense

Hi Rajamani,

As undergrinder‌ mentioned, you can actually read the log files using Python and look for errors. If you happen to find any errors, you can trigger a mail through your SMTP.

Thanks,
Sangram.

henrikmatz
Contributor II

Re: Mail on task failure in Qlik sense

What log-file should we then look into?