Skip to content
Bug Barometer

Reports.ReportManager.runReport() silently discards uncommitted DML from the same Apex transaction

Not fixed yet. Salesforce is working on a fix.

Summary

When Reports.ReportManager.runReport() is called after a DML operation (insert, update, upsert) in the same Apex transaction, the DML records created earlier in that transaction disappear silently — no exception is thrown, no error appears in Apex debug logs. Any Apex automation that tracks or logs state before calling runReport() is silently broken, with no way to detect the data loss at runtime.


Running report using Apex Test Class is also facing similar problem. Test class running reports is not seeing the test record created within the same test execution.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Solution in Progress with 1 report

    Nov 30, 2026

Also open in Reports & Dashboards