-------------------------------------------------
Edit for better error message and methods googleability:
Exception occurred - The data you're trying to access is unavailable.
Class.reports.ReportManager.describeReport: line 6, column 1
Class.SaveInvoiceAsCSVFile.saveInvoice: line 44, column 1
Class.PemeWsJobs.execute: line 19, column 1
The data you're trying to access is unavailable.
System.NoDataFoundException
Please consider following before answering:
- The same code runs when invoked through anonymous code window in devConsole.
- "Run reports" permission is there on profile running this code.
- If I query the records with fields that the report is on, they show up no error.