Skip to content
Bug Barometer
All issues
Solution Deployed

Platform / Eventing Platform

DML Operations performed with platform events trigger not rolled back in apex test using EventBus.RetryableException

Summary

When using EventBus.RetryableException in a Apex trigger handler for platform events, attempting to test this functionality in a apex test will not rollback the DML that is performed



Ref:
Comparing setResumeCheckpoint() and EventBus.RetryableException
https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_subscribe_compare_checkpoint_retryable.htm

Test Retried Event Messages
https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_test_retry.htm?search_text=EventBus.RetryableException

Workaround

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

History

  1. First tracked here as Solution Deployed with 5 reports

    Nov 30, 2026