Performance Report scheduling with empty emails suppressed

I'm working on a customization to the Performance Report, which will be scheduled to run once per day in the morning to be emailed to a list of recipients.

The way the canned report is designed, in the event that it is scheduled daily, it will run (and email) even if there are no perfs that day to be reported on. I want to try to suppress these empty emails.

Would the best way to accomplish this be to cause an error within the stored procedure in the event that no perfs are matched? Does anyone have a notion of what this code might look like? I'm not 100% sure about what errors would cause a complete halt in execution of the stored procedure. Am I correct in thinking this would prevent the email from being sent?

Parents Reply Children
No Data