Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
gavin_kite
Partner - Contributor III
Partner - Contributor III

NPrinting Stop sending emails when no report is generated

Hi guys

I know there's other threads on this but I'm just don't understand what is going on with my NPrinting Task/ Process

I have a process that emails out an XLS attachment but I only want it to send out an email where the report does actually generate an attachment

I can see that in Qlikview, when I apply the filters that I want to apply in NPrinting, it does not find any results

IE

Vendor = T65

Arrears/Forward Flag  = Arrears

Schedule Type = Schedule

Arrears1.png

As you can see, the value 'Schedule' in the Schedule Type field  is grey so therefore unassociated  data so when my NPrinting Task runs, it shouldn't produce any reports or send an email.

The only filters I have in place are Task filters (which I believe have the highest priority)

Arrears 2.png

When I run the execute the task, it runs, but appears to fail

Arrears 3.png

With the log shown below suggesting there are errors in my filters with no mention of the condition

Arrears 4.png

Finally, an email is then sent out without an attachment.

I can't really create a task per supplier as there are too many so does need to be ran as a single task.

Currently Using NPrinting April 2018 (18.9.5)

What am I missing? Any help greatly appreciated.

Thanks

12 Replies
gavin_kite
Partner - Contributor III
Partner - Contributor III
Author

Thanks for your help

shope99
Partner - Contributor II
Partner - Contributor II

For anyone who comes across this thread, the ability to supress email on error was added to the February 2019 release of NPrinting; according to the release notes here:  https://community.qlik.com/t5/Qlik-Support-Updates-Blog/Qlik-February-2019-New-Feature-Releases-for-...

New parameter that configures whether emails send when reports fail

Jira issue ID: OP-4632

If the reports attached to an email fail to generate, the default behavior is for the email to send with an error message.  Uncommenting the new parameter <add key="disable-failure-email-sending" />in the scheduler.config files tops emails from sending when report generation fails. If reports are not sent an error will be logged.If you enable this parameter:

  • If all reports for a user in a task are correctly generated,the user will receive the email.
  • If only some of the reports for a user in a task are generated the user will receive an email with only the generated reports.
  • If the generation of all reports for a user in a task fails they will not receive an email.

Shaun

Lauri
Specialist
Specialist

Not sure when this feature was added, but in NPrinting September 2019 I can set it to not send an email if all reports fail:

https://help.qlik.com/en-US/nprinting/September2019/Content/NPrinting/DistributionSchedulesAutomatio...

NPrinting.JPG