A Developer sandbox needs a few hundred realistic records. A Full Copy sandbox inherits forty million rows from production and still fails a load test because half of those rows are redacted, archived, or three years stale. Salesforce sandbox test data has to be sized to the sandbox type it lands in, not copied once and left to rot. Treat every sandbox the same way and you either starve your QA team of coverage or drown your Developer orgs in data they never asked for.
Why One Seeding Plan Doesn't Fit Every Sandbox Type
Salesforce gives you four sandbox types for a reason, and each one trades storage, refresh interval, and data fidelity differently. Developer and Developer Pro sandboxes refresh daily and carry a few hundred MB of storage. Partial Copy and Full Copy refresh every 5 and 29 days respectively, and Full Copy can run into hundreds of GB. Matching your test data strategy to those constraints is not optional housekeeping. It is the difference between a sandbox that supports a release and one that just sits there looking like production.
Teams that generate one data set and push it everywhere usually find out the hard way that it doesn't scale down. A 50,000-row account hierarchy built for a Full Copy performance test will choke a Developer sandbox's storage limit before the first unit test runs. Go the other direction and a hundred hand-crafted records won't surface the lookup skew or sharing rule edge cases a UAT team needs in Partial Copy. The fix isn't more data everywhere. It's the right volume, shape, and refresh cadence for each environment.
Developer and Developer Pro Sandboxes Want Speed, Not Scale
These sandboxes exist for fast iteration. A developer building a trigger or a Flow doesn't need ten thousand Opportunities. They need twenty that hit every stage, every record type, and every required lookup the trigger touches. Anything beyond that just slows down deploys and clutters query results during debugging.
Bulk API v2 is a good fit here precisely because it's fast at small volumes too. Generate a tight, schema-compliant seed set at sandbox creation and regenerate it on every refresh rather than trying to preserve state between resets. Since these sandboxes refresh daily or on demand, treat the seed job as part of the refresh script, not a one-time setup task.
The practical target is coverage, not count. Every picklist value, every required field combination, every record type that governs page layout behavior should appear at least once. A junior admin testing a validation rule change doesn't care that there are only 40 Accounts in the sandbox. They care that one of those 40 triggers the rule.
Partial Copy Sandboxes Inherit Sampling Rules You Didn't Choose
Partial Copy sandboxes pull a defined sample of production data based on a sampling rule you configure in the sandbox template. That sounds controlled, but the sampling is object-level, not relationship-aware. Salesforce samples the parent object by its own criteria and then includes child records that relate to the sampled parents, up to a size limit. The result is often a data set with intact Accounts but orphaned-feeling Contacts, or Opportunities whose related Quotes got excluded because the template capped record counts before every child made the cut.
This matters for QA because testers assume Partial Copy behaves like a smaller production. It doesn't. Lookup fields can point at records that didn't survive sampling, and rollups that depend on a full child set will report numbers that don't match what a tester sees in production. If your QA team is debugging a rollup discrepancy, check the sampling rule before you assume the formula is broken.
The fix is to treat the sampled data as a baseline, not a finished product, and top it up with synthetic records that fill the relationship gaps. Generate additional child records for parents that need them, using Bulk API v2 to insert in dependency order, and make sure external IDs or record names flag which rows are synthetic versus sampled. That flag saves hours when someone asks why a specific Opportunity behaves oddly six weeks later.
Full Copy Sandboxes Feel Safe and Often Aren't
Full Copy gets sold internally as the safe choice because it's literally production data. I'd push back on that a little. A Full Copy sandbox refreshed 25 days ago is already stale against anything built or changed since, and most orgs don't refresh every 29 days on the dot. Fields added two sprints ago are null across the entire data set. Recent record types have zero representation. The comfort of real-looking data hides the fact that it's a snapshot, not a mirror.
There's also a cost argument that gets ignored. Full Copy storage is expensive, refresh windows can run hours, and most QA and performance test suites don't actually need every historical record. They need volume that matches production scale and shape, plus current schema coverage for anything shipped since the last refresh. A well-seeded Partial Copy with synthetic top-up frequently delivers more test value per dollar than a Full Copy sitting at 40% relevance.
Where Full Copy earns its keep is large-scale performance and load testing, where row counts and data skew patterns genuinely need to resemble production at scale. Even there, don't assume the refreshed snapshot is enough on its own. Generate a batch of records for every object and field shipped since the refresh date, so your test coverage doesn't have a blind spot shaped exactly like your last two sprints.
Matching Generation Runs to the Refresh Calendar
Seeding data once and forgetting about it is the most common failure mode across all three paid sandbox types. Every refresh wipes custom data unless you've planned around it, so the generation job has to be part of the refresh runbook, not a separate task someone remembers two weeks later.
A practical approach: read the current org schema right after refresh, diff it against the schema used in the last seed run, and regenerate only what changed plus a baseline volume for everything else. This keeps the Bulk API v2 job fast, because you're not reinserting unchanged reference data every time, and it guarantees new fields and objects get test coverage immediately instead of after someone files a bug.
Batch sizing matters here too. Developer sandboxes can handle generation in a handful of Bulk API v2 batches since volumes are small. Full Copy performance runs benefit from larger batch sizes and parallel job submission to hit meaningful record counts inside a maintenance window. Tune batch size to the sandbox, not to a single default your team picked eighteen months ago and never revisited.
A Seeding Checklist for Refresh Day
Before any refresh completes, someone should be able to answer four questions: what volume does this sandbox need, what's the data source, how often does it refresh, and who owns the regeneration job. A simple reference table keeps that answer consistent across teams.
| Sandbox Type | Target Volume | Primary Data Source | Refresh Cadence |
|---|---|---|---|
| Developer / Dev Pro | Hundreds of records, full field/picklist coverage | Synthetic, generated fresh each time | Daily or on demand |
| Partial Copy | Sampled set plus synthetic top-up for gaps | Sampling rule output + Bulk API v2 fill-in | Every 5 days minimum |
| Full Copy | Production-scale volume, current schema coverage | Production snapshot + synthetic for post-refresh schema changes | Every 29 days minimum |
None of this requires exotic tooling. It requires a schema read before every generation run, a Bulk API v2 job that respects insert order for dependent objects, and a refresh runbook that treats data seeding as a step, not an afterthought. Sandboxes that get this right stop being a source of false negatives in QA and start being an actual predictor of how a release will behave in production.
Frequently Asked Questions
How much test data does a Salesforce Developer sandbox actually need?
A few hundred records is usually enough, as long as every picklist value, record type, and required field combination the team is actively testing is represented at least once. Volume matters far less than coverage in a Developer sandbox. Since these environments refresh daily or on demand, it's more efficient to regenerate a tight data set each time than to try to preserve state between resets.
Why do lookup fields break after a Partial Copy sandbox refresh?
Partial Copy sampling rules work at the object level and include child records only up to a size limit, which means some parent records get sampled while related children do not. This leaves lookup fields pointing at records that never made it into the sandbox. Topping up the sampled data with synthetic child records that respect the existing relationships closes most of these gaps.
Is a Full Copy sandbox always the best choice for test data accuracy?
Not necessarily. Full Copy sandboxes refresh at most every 29 days, so any schema changes or new records added since the last refresh are missing from the snapshot. A Partial Copy sandbox seeded with targeted synthetic data often provides better current coverage at a fraction of the storage cost, reserving Full Copy for genuine large-scale performance testing.
Can Bulk API v2 generate test data fast enough for daily sandbox refreshes?
Yes, Bulk API v2 handles small-volume jobs quickly, which fits Developer and Developer Pro sandboxes that refresh daily. The job should read the current org schema immediately after refresh and insert records in dependency order so parent and child relationships stay intact from the first batch.
How do I keep sandbox test data current between scheduled refreshes?
Diff the org schema against what was used in the last seeding run and generate records only for new or changed fields and objects, layering that on top of the existing baseline data. This avoids reinserting unchanged reference data on every pass while guaranteeing new fields get test coverage immediately instead of after a bug gets filed.