Subscribe with invalid replay id intermittently fails by unexpected "403:denied_by_security_policy:subscribe_denied"
Salesforce closed this issue.
Summary
Subscribe with invalid replay id intermittently fails by unexpected "403:denied_by_security_policy:subscribe_denied" with no detail when subscribe and connect are called in parallel.
Actual Result
Subscribe with invalid replay id intermittently fails by unexpected "403:denied_by_security_policy:subscribe_denied" with no detail.
Expected Result
Subscribe with invalid replay id should fail by "400::The replayId {invalid replay id} you provided was invalid. Please provide a valid ID, -2 to replay all events, or -1 to replay only new events." with no detail
Actual Result
Subscribe with invalid replay id intermittently fails by unexpected "403:denied_by_security_policy:subscribe_denied" with no detail.
Expected Result
Subscribe with invalid replay id should fail by "400::The replayId {invalid replay id} you provided was invalid. Please provide a valid ID, -2 to replay all events, or -1 to replay only new events." with no detail
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Closed with 3 reports
Nov 30, 2026
Also open in Eventing Platform
Process Builders and Flows are no longer subscribed to Platform Events on creation and refresh of Sandbox
In ReviewPlatform / Eventing PlatformSpring '20Reported Mar 23, 2020168 reports168reports
Streaming API fails to reconnect when sessions are incorrectly routed due to a change in ‘sfdc-stream’ cookie.
Solution ScheduledPlatform / Eventing PlatformSpring '19Reported Jun 5, 2019103 reports103reports
Shared Subscriber stops to pull events intermittently
Solution DeployingPlatform / Eventing PlatformSummer '25Reported Sep 3, 202516 reports16reports
SOQL filters for StartDate(or EndDate) with Name against PlatformEventUsageMetric does not return expected result for more than 2000 metric records
Solution ScheduledPlatform / Eventing PlatformSpring '22Reported May 30, 202212 reports12reports