function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michael Ries 10Michael Ries 10 

getDeleted missing deleted items

I've run into situations several times now where the getDeleted() API is returning an earliestDateAvailable that indicates it should have a record, but does not actually return the Id of a record that has been deleted.

I've observed this now at 3 different customers and on both Event objects as well as OpportunitySplit objects. These customers seem to have some kinds of automation set up on those objects which may be contributing to what I'm seeing?

The Reproducible
1) On 2020-01-03 11:00:20 UTC we issued a Salesforce SQL query for OpportunitySplit objects with LastModified >= 2020-01-02 10:00:00 UTC and we got back a record with the Id 0493b000003OI01AAG.

2) The OpportunitySplit had both CreatedDate and LastModifiedDate set to 2020-01-02T16:48:13.000+0000

3) If I query the API today specifically for 0493b000003OI01AAG it is no loner present in their Salesforce instance (also if I use a queryAll).

4) When I query the getDeleted API for OpportunitySplit objects between 2019-12-28 17:10:32 UTC and 2020-01-07 17:10:44 UTC I get back 42 records and the response shows earliestDateAvailable 2019-12-03T00:30:00.000+0000, but the response does not contain the Id of the OpportunitySplit in question (0493b000003OI01AAG)

Are there cases where an object is hard-deleted, but are not recorded in the delete log?

Is there a way for me to efficiently query for deleted objects that will include these hard deletes?
We are now seeing this issue as well.  Did you ever get a resolution from salesforce ?
Michael Ries 10Michael Ries 10
No, we haven't been able to get any answer from Salesfore about this.