Query failed for emailed/scheduled PDF reports