Loading

Slowness in updating or changing GetUpdatedResult.latestDateCovered

Veröffentlichungsdatum: May 26, 2026
Beschreibung

Salesforce exposes two SOAP API calls to support data replication: getUpdated() and getDeleted() These are sometimes referred to informally as the "Replication API." The getUpdated() call returns a GetUpdatedResult object which includes a latestDateCovered field — a timestamp representing the latest point after which Salesforce is absolutely certain all updated record IDs have been captured.
Issue: The latestDateCovered value may not update regularly. In some cases it can take hours to update, and in rare cases, days.

Note: The Salesforce Data Replication API (getUpdated/getDeleted) is the legacy method for discovering data changes. Salesforce recommends using Change Data Capture Developer Guide. instead to get real-time notifications of record insertions, updates, deletions, and undeletions.

 

Lösung

The latestDateCovered field in the GetUpdatedResult object (part of the Salesforce SOAP Data Replication API) represents the latest timestamp after which Salesforce guarantees all updated record IDs have been captured. This value is intentionally conservative — it pauses when long-running transactions execute on your Salesforce instance, even transactions initiated by Salesforce itself for database maintenance purposes. Delays of hours or, in rare cases, days are expected behavior.
Your organization does not need to be executing any long-running operations for this to occur — a long-running transaction anywhere on your shared Salesforce instance can cause a delay. From time to time, Salesforce may also pause background services when system load becomes heavy or extra capacity is needed. When this happens, asynchronous processes like the one that updates latestDateCovered are temporarily paused.

When to Log a Support Case

If latestDateCovered has not updated for 48 hours or longer, log a support case and reference Knowledge Article 000199031. Support will attempt to identify any service issues causing the delay. Be aware that Support may confirm there are no service issues and that the behavior is working as designed.

Best Practices and Workarounds

Consider switching to Change Data Capture (CDC) to receive a real-time stream of record changes from Salesforce. CDC provides insertions, updates, deletions, and undeletions without the conservative delay of latestDateCovered.
If continuing to use the Replication API, follow these practices to ensure data integrity:

    • Save the timestamp used in previous Data Replication API calls so your application knows the last time period for which replication was successfully completed.
    • Build business logic to handle and discard redundant record IDs that may be returned when the same latestDateCovered value is passed back to getUpdated().
    • Design your application to handle polling gaps caused by client failures (hardware crash, network failure) by tracking the last successful replication timestamp and polling for the next consecutive timespan.
    • If local data is compromised, include business logic for rebuilding the local data from scratch by performing a full re-sync.
Nummer des Knowledge-Artikels

000386867

 
Laden
Salesforce Help | Article