When a report is scheduled with input parameters that return an empty report, the email goes out to recipient even when the "Do not send emails for empty reports" was selected during the scheduling activity.
Steps to Replicate:
- Open Advanced Reporting and choose a default report from the repository and create a schedule
- Schedule the report such that report does not return data
- On the notifications tab choose "Do not send emails for empty reports"
No emails should be sent to user where there is blank report.
User gets email with blank report.
By design the emails only triggers by the main dataset being empty, and when the report attribute returns has no pages. In reporting terminology when the attribute 'whenNoDataType=NoPages' is returned.
The report attribute 'whenNoDataType=NoPages' means that the generated document will have no pages in it.
PPM 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 it appears we would always end up having blank pages in our reports and hence emails will trigger for reports that are scheduled.