Empty reports send emails even with the option "Do not send emails for empty reports" checked
search cancel

Empty reports send emails even with the option "Do not send emails for empty reports" checked

book

Article ID: 6593

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

When a report is scheduled with input parameters that return an empty report in Advanced Reporting, the email goes out to the recipient even when the "Do not send emails for empty reports" is selected during the scheduling activity. 

Steps to Reproduce: 

  1. Open Advanced Reporting
  2. Choose a default report from the repository and create a schedule
  3. Schedule the report such that report does not return data
  4. On the notifications tab choose "Do not send emails for empty reports" 

Expected Result: No emails should be sent to you when there is a blank report. 
 
Actual Result:  You get an email with a blank report. 

Environment

Clarity 14.2 onwards

Cause

Clarity engineering reviewed this with Jaspersoft and concluded that this is working as designed and raised an enhancement for the "Do not send blank email" feature to work for blank pages. Jaspersoft Enhancement ID= JS-29982. By design, the emails only trigger by the main dataset being empty, and when the report attribute returns has no pages. This is when the attribute 'whenNoDataType=NoPages' is returned. 

The report attribute 'whenNoDataType=NoPages' means that the generated document will have no pages in it. 

Clarity default reports return a single blank page.i.e.'whenNoDataType=BlankPages'. The default reports also appear to have bands that is designed to return "no data found". So there can then be blank pages in Clarity reports and hence emails will trigger for reports that are scheduled. 

Resolution

Write custom reports that can adapt to the logic where the report returns 'whenNoDataType=NoPages'.

Reference "Do not send emails for empty reports" - how to make it work when sub Dataset is empty on Jaspersoft Communities.

Attachments

1558714580726000006593_sktwi1f5rjvs16thz.jpeg get_app