Skip to main content
All CollectionsSalesforceTroubleshooting and FAQs - SFDC
Salesforce Discrepancy in the number of deleted records listed vs the count of deleted records displayed under the snapshot comparison in the Druva app
Salesforce Discrepancy in the number of deleted records listed vs the count of deleted records displayed under the snapshot comparison in the Druva app
Updated over 4 months ago

Problem description

  • Under the Data Backup tab, you have a section titled as “View, compare and restore snapshots”. This section shows you the comparison between the previous and the current snapshot, where it lists the count of “Created”, “Updated” and “Deleted” records.

  • When you click on the drop-down next to the object that has either of these three types of modifications present, and click on “Details”, you can view the records that were created OR updated OR deleted between those two backup jobs.

  • Sometimes, the number of deleted records displayed against an object is greater than the number of deleted records that get listed when you click on the details of that snapshot.

Cause

The Delete API that we use from Salesforce, returns the count of all deleted records for the corresponding object.

This means, for example:

  1. On day 1, the Account object containing 10 records, was backed up.

  2. Before the next backup is triggered on the next day, the users or admins in Salesforce created 5 new records under Account and deleted them.

  3. Thus, when the next backup will run on the day 2; the delete API will note the count of those 5 records created.

  4. The comparison view between Day 1 and Day 2 snapshots, will show that 5 records for Account were deleted.

  5. However, those 5 records were created between the Day 1 and Day 2 snapshots, thus they were backed up in neither of those two snapshots.

  6. Hence, when you click on the Details under the comparison section and check for the deleted records under Account, none of those 5 records will be displayed.

Resolution

  • The above behavior is by design.

  • Admins will be able to view only those deleted records, which were backed up in the previous snapshot before deletion.

  • However, Druva App’s comparison section will display the full count of all deleted records under that object from Salesforce.

Did this answer your question?