When you refresh a Partial Data sandbox in Salesforce, not all records from your production org are copied. The sandbox uses random sampling of up to 10,000 records per object. Relationships are only enforced for Master-Detail or Required Lookup fields — standard Lookup relationships are not enforced during sampling.
This article explains which records are copied during a Partial Data sandbox refresh, how object relationships affect the sampling, and how Contacts, Accounts, and Opportunities are handled.
Partial Data sandbox copy works by collecting a sample of up to 10,000 records per object. Unless objects are related by a Master-Detail relationship or Required Lookup, the sampling application does not guarantee related records are included.
For example, if there are objects A, B, C, and D with the following relationships:
The sampler picks up to 10,000 related records for A, B, and C (enforced relationships). However, the 10,000 records from D may not have A, B, or C values populated because D is treated as a top-level "parent" object due to its Lookup-only relationships. If D had a Master-Detail or Required Lookup, it would be treated as a child object and its records would be dependent on its parent's sample.
Contact and Opportunity records do not have a required Master-Detail relationship with the Account object. However, the Partial Copy sandbox sampling application treats the UI-enforced relationship as required:
There is a storage limit of 5 GB for Partial Data sandboxes. If there are a large number of objects with more than 10,000 records each, the number of records copied per object may be reduced to stay within this limit.
000386381

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.