On one of my client below query is used to fetch blocking tree report and send it via mail in html format. But some times we are getting a blank report with only headers and