I am getting this error when I try to run report in apex like this : Reports.ReportResults reportResults = Reports.ReportManager.runReport(reportId, false);
Because, the report has more than 50,000 rows. Is there any workaround for this?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
As you've indicated, the report you are trying to run has more than 50000 rows. You need to limit the report to less than 50000 rows.
You have a couple of options: