Most Salesforce data loss traces back to seven causes: human error, failed deployments, integration failures, sandbox refresh issues, field deletions, migration mistakes and cyberattacks. Getting data back isn't easy either: deleted records stay in the Recycle Bin for 15 days by default, and Salesforce's scheduled export runs weekly at most.
Salesforce runs and secures the platform, but under its shared responsibility model the data and metadata you put into it are yours to protect. Knowing where loss tends to start is the first step in any Salesforce backup and recovery plan.
Salesforce's own training says many customers mistakenly believe their data is fully protected against all scenarios. Admins tend to find out otherwise in one moment: a bulk update finishes, the numbers look off, and a compliance or business deadline is hours away.
7 Causes of Data Loss Every Salesforce Team Should Know
Very little of this happens because the platform fails, since most of it starts with ordinary work and each pattern calls for its own control. The odds go up when two or three teams are changing the same objects and automations in the same sprint.
A bad config change, a deployment that half-lands and an integration with too much access each leave a different kind of mess. The table sums up all seven causes and the first control for each, and the sections below cover them in detail.
| Cause | What goes wrong | First control |
|---|---|---|
| Human error | Records deleted or overwritten by mistake, often through bulk updates or imports | Limit Modify All Data and back up before bulk jobs |
| Failed deployments | Unmapped dependencies stop a release or let it ship broken | Validate dependencies and keep a rollback procedure |
| Integrations and stolen tokens | Connected apps delete or export data within their permissions | Audit OAuth scopes and watch bulk API activity |
| Sandbox refreshes | Stale sandboxes push outdated configuration into production | Limit production changes during a refresh |
| Field deletion | Automations, reports and integrations that use the field break | Check every dependency before removing a field |
| Migrations | Broken mappings leave records incomplete, duplicated or overwritten | Validate referential integrity and snapshot before cutover |
| Attacks and insider misuse | Unauthorized export or mass deletion | Encrypt backups, restrict access and monitor bulk exports |
1. Human error and accidental deletion
It doesn't take a hacker, because people with legitimate access delete or overwrite the wrong data by mistake. And since Salesforce records link to each other, one slip can ripple into related objects before anyone notices.
A rep might delete the wrong batch of leads, or a bulk update might blank out a value that finance relies on. Data Loader jobs with an incorrect mapping, and imports that corrupt data or create duplicates, do the same kind of damage.
The first control is access, so keep the Modify All Data permission on the few profiles that need it, since it overrides all other sharing settings. Access piles up across a user's profile and permission sets, so taking access away means removing it from every set that grants it.
Field-level security on financially sensitive fields and PII is another basic way to prevent accidental data loss. For bulk work, especially deletions or big deployments, run automated backups first so there's a clean point to restore from.
2. Failed deployments and metadata corruption
Failed deployments can damage metadata and change how production behaves, and the trouble usually starts with a dependency nobody mapped. A component that leans on something missing or out of date in the target org can stop a release cold, or let it ship broken.
Either way, features that worked yesterday can fail and data can end up inconsistent in production. Validate dependencies before each deployment, keep a rollback procedure for every release and use version control to see exactly what changed and when.
3. Integration mistakes and stolen tokens
To keep performance steady and the API available to all customers, Salesforce sets API request limits. Limits don't stop a connected app from doing damage within the scope it was granted, so access control and monitoring still matter.
Salesforce itself describes a scenario where one small oversight in an integration's configuration kicked off a series of deletions in a company's CRM. Then came August 2025, when a threat actor took compromised OAuth tokens from the Salesloft Drift app and used them to pull data out of many corporate Salesforce instances.
Google's researchers said that campaign didn't stem from a vulnerability in the core Salesforce platform. Compromised tokens carry the permissions of the connected app, which makes broad token scopes a direct data loss risk.
Controls that help: Review OAuth token scopes for connected apps and watch for unexpected bulk API operations. Take backup snapshots before and after each new integration goes live.
4. Sandbox refresh issues
Managing each Salesforce environment brings its own data loss patterns. Stale sandboxes create deployment risk, because developers build and test against conditions that no longer match production.
That mismatch can push outdated configuration into live environments. Per Salesforce guidance, a sandbox is not a point-in-time snapshot of your data, and production changes made during creation or refresh can cause inconsistencies.
To avoid it, follow Salesforce's advice and limit production changes while a sandbox is being created or refreshed. Refresh sandbox environments after each production deployment to keep them aligned.
5. Field deletion breaking flows and automations
Deleting one field can break processes that still depend on it, from automations and reports to integrations outside Salesforce. Often the impact surfaces only after users report problems.
Dependencies are easy to miss when something has been in use for years. Every place that reads or writes it, including older flow versions, needs a check before removal.
Safeguards: Track field dependencies before deletion and use deployment validation that checks every flow version. Flag references to anything scheduled for removal so their owners can update them first.
6. Migration mistakes and data transfer errors
Migrations fail when object relationships or mappings break during transfer. In Salesforce, that can leave you with incomplete, duplicated or overwritten data.
Incorrect external ID mappings are a common error, and importing data in the right order keeps relationships intact. Mapping errors can also replace correct values with bad ones.
Recovery gets harder when related Salesforce records across objects need restoring, or metadata has to go back to a pre-corruption state. Salesforce's backup training names both cases as gaps in native recovery.
Before cutover: Validate referential integrity before cutover and export pre-migration snapshots of affected objects. Test migration scripts in a sandbox with production-scale data volumes.
7. Cyberattacks and malicious activity
Deliberate attacks can cause direct record loss through unauthorized export or mass deletion. Insider misuse produces the same outcome through trusted access paths.
Employees and contractors with system access can pose a significant risk, Salesforce warns, whether they act on purpose or by accident. Authorized users can export, modify or delete data without setting off the alerts an outside intrusion might.
Defenses: Encrypt backups, rotate encryption keys regularly and use role-based access controls for backup and restore. Monitor for unusual bulk exports or mass deletions.
Why Native Salesforce Tools Leave Recovery Gaps
Native recovery options help in narrow cases, but they don't fully cover operational problems. That limit hurts most when you need fast, granular data recovery.
Deleted records stay in the Recycle Bin for 15 days by default. Salesforce Support can extend that to 30 days on request, an option fully accessible only in Salesforce Classic.
Data Export runs weekly at most, and only Enterprise, Performance and Unlimited Editions get the weekly option. A week of changes can sit between recovery points, or about a month in editions limited to monthly exports.
Salesforce Shield adds Event Monitoring with real-time threat detection and Transaction Security Policies. These need extra setup, and without ongoing monitoring, important details about user activity can go unnoticed.
What Effective Protection Requires
Real protection takes more than periodic exports and basic deletion recovery. Organizations need controls that reduce loss risk before a restore request ever arrives.
A practical model covers four areas:
- Backups that run often enough to shrink recovery point gaps
- Restores at object and record level that keep parent-child relationships intact
- Change tracking that captures metadata changes and supports rollback to a prior state
- Retention policies that match internal recordkeeping needs
Regulatory Requirements That Raise the Stakes
Data protection in Salesforce is also a regulatory issue. Restore capabilities, change tracking and retention decide whether organizations can meet formal obligations.
Three frameworks matter most here:
- GDPR compliance rests partly on Article 32(1)(c), which requires the ability to restore availability of and access to personal data in a timely manner after an incident. For Salesforce teams that store personal data, restore and retention become documented controls.
- Under HIPAA data backup rules, 45 CFR 164.308 requires procedures to create and maintain retrievable exact copies of electronic protected health information. Security Rule documentation must be kept for six years, so restore accuracy and retention shape compliance in orgs that hold health data.
- SOX compliance brings long retention too, as the SEC's records rule requires accounting firms to keep audit workpapers and related records for seven years. Knowingly destroying or falsifying records to obstruct a federal matter is a crime under 18 U.S.C. 1519, with prison terms of up to 20 years.
Native audit history is much shorter. Setup Audit Trail keeps 180 days of setup changes, and Field History Tracking keeps data for 18 months in the user interface, well short of those retention periods.
Closing the Gap with Purpose-Built Protection
Addressing these seven causes takes automation, change visibility and recovery controls that standard platform features don't fully provide. DevOps solutions built for Salesforce reduce release risk and tighten operational control.
Flosum's DevOps platform offers metadata-aware version control, one-click rollback and audit trails generated in the release pipeline. For backup, recovery and retention, teams should weigh separate controls such as Flosum Backup & Archive, which offers point-in-time restore at field, record or full-org level.
FAQs
What is the most common cause of data loss in Salesforce?
Salesforce doesn't publish a ranking, but its own backup training lists accidental deletion or modification by users first. Bad imports, mistaken bulk updates and misconfigured Data Loader jobs can damage large numbers of records in minutes.
Does Salesforce back up customer data automatically?
Salesforce protects platform availability, while restoring individual customer records is the customer's responsibility. Native options such as the Recycle Bin and Data Export have limits on retention window, granularity and timing.
Why are Salesforce migrations risky?
Migrations can break record relationships, misapply field mappings and overwrite valid data. Those errors leave records incomplete or inconsistent after cutover, which is why teams snapshot affected objects first.
Are sandboxes a reliable backup of production?
No, a sandbox reflects production as of its last refresh rather than a continuously updated copy. The two drift apart as production changes, so treat sandboxes as places to build and test, not as recovery points.
Why do compliance teams care about Salesforce backup and recovery?
Frameworks such as GDPR, HIPAA and SOX set requirements for restoring data, documenting changes and retaining records. Those obligations apply to Salesforce orgs that store regulated data, which turns backup and retention into audit topics.
How do you recover deleted records in Salesforce?
Restore them from the Recycle Bin within 15 days of deletion, or within 30 days if Salesforce Support has extended retention for your org. Once the Recycle Bin retention window closes, records can only come back from a backup or export taken before the deletion.
Book a demo to see how Flosum gets Salesforce data back after a loss.
Thank you for subscribing




