Error Recovery Options

If transient errors occur, such as connectivity issues or errors in the event relay configurations, event relay resumes automatically after the connectivity issues are resolved or the configurations are fixed. The event relay attempts to resume sending events from the event bus from where it left off. In rare occasions, if it can't resume after the last relayed event, it uses the error recovery option to determine where to resume from.

Specify the error recovery option when you create or edit the event relay in Setup. Choose one of these options.

  • Resume from the latest events received. This option skips sending events that were published during the error. This option is the default.
  • Resume from the earliest events stored in the event bus. This option sends new events and any other events less than 72 hours old. You can reprocess all stored events and catch up on missed events.

Also, you can specify the error recovery option in Tooling API or Metadata API via the relayOption field in EventRelayConfig. When you create an event relay, add the relayOption field with the desired value in the EventRelayConfig POST request. Or you can update an event relay by performing a PATCH request for EventRelayConfig and supplying a value for relayOption. For more information about this field, see EventRelayConfig in the Tooling API Developer Guide and EventRelayConfig in the Metadata API Developer Guide.