Large Volumes and Limits
This article brings together the limits that matter when you receipt large numbers of gifts, for example at year-end: how much each run can handle, the daily caps, and the settings that control speed.
How Large Runs Work
Every large job runs in the background in small steps. Each step handles Receipt Batch Size records (20 by default), within the limits Salesforce sets for one step.
A run of 50,000 gifts is simply many steps, one after another. The Batch Receipt Logs and Background Jobs article explains how to follow a run.
Limits at a Glance
| Limit | Value | What happens when you reach it |
|---|---|---|
| Receipts created per rolling 24 hours (Daily Receipt Limit) | 200,000 when blank. Installed as 100,000. | The insert is refused with an error. The gifts stay eligible. |
| Receipts emailed through Salesforce per day (Daily Email Limit) | 5,000 by default | The group isn't sent: "You've reached the daily limit for sending emails. You can continue tomorrow without loss." The receipts stay "To be Emailed". |
| Records shown in a selection table (Table Record Limit) | 100 by default | Above it, the table is skipped and all matching records are processed after a confirmation. Printing asks you to merge first. |
| Preview report (Preview Report Limit) | 10,000 by default | At or above it, the Create Preview Report button isn't shown. |
| Records per click of the New Receipts button on a list view | 200 | You're asked to select fewer. |
| Receipts per click of the Email Receipts, Print Receipts or Merge Receipts button on a Receipt list view | 200 | You're asked to select fewer. |
Recurring donations, opportunities and payments (single and consolidated receipts) have no per-run cap in Batch Receipts: every matching gift is receipted, within the Daily Receipt Limit.
Settings That Control Speed
| Setting | Default | Effect |
|---|---|---|
| Receipt Batch Size | 20 | Records per step for creating receipts, PDFs, the scheduled job, creating missing PDFs, refreshing indexed fields and emailing receipts (at most 100 emails per step). Lower it (for example to 5–10) if jobs fail with CPU-time or heap-size errors. |
| PDF Segments | 3 | How many PDF jobs run in parallel. Values above 5 are treated as 5. |
| PDF Merge Batch Size | 100 | Receipts combined into each merged PDF for printing. If merges often time out, try a lower value. |
| Batch Threshold | 100 | Only for your own automation that uses the "Create Receipts for Opportunities" or "Create Receipts for Payments" actions: above this many records, a background job is used. |
| Enable Index Optimization | "No" | For very large data volumes only. Keeps indexed copies of Receipt Status and Payment Date on Opportunities so that receipting queries stay fast. See the Receipt Settings article. |
Raising it speeds up PDFs, but leaves fewer batch slots for your org's other jobs. Raise it only if PDFs are your bottleneck.
Leave it set to "No" unless you have very large data volumes, such as millions of gifts.
When it is "Yes", the indexed fields must be kept up to date with App Utilities > Refresh Indexed Fields.
Planning a Year-End Run
- Check eligibility first. Turn on Enable Preview Report to see which gifts will be receipted before you create anything (up to the Preview Report Limit).
- Refresh indexed fields. If Enable Index Optimization is on, run App Utilities > Refresh Indexed Fields for the date range you receipt, so the indexed copies match the formulas.
- Split by Receipting Account for consolidated receipts, if you use Receipting Accounts.
- One run at a time. Batch Receipts won't start creating, emailing or merging while a job of the same kind is running in the org, including the scheduled job, so plan big runs outside the scheduled job's time. The scheduled job skips its run while a "Create Receipts" or "Create PDFs" job from that day is still running. See Running Jobs at the Same Time.
- Plan email over several days through Salesforce: at 5,000 a day, 12,000 receipts take three days. Dryad Mailer isn't limited by Salesforce's allowance or the Daily Email Limit.
- Merge before printing. Above the Table Record Limit, receipts are merged into PDFs of PDF Merge Batch Size receipts each, then printed from the Print merged receipts option.
Which Records a Run Can See
Batch Receipts only selects gifts and receipts that the person running it can see in Salesforce. The scheduled job only sees what the person who scheduled it can see.
For a complete year-end run, use someone who can see every gift and receipt, such as a System Administrator.
Troubleshooting
| Symptom | Check |
|---|---|
| Creating receipts fails with a daily limit error | The Daily Receipt Limit was reached in the last 24 hours. Continue later, or raise the limit. |
| "You've reached the daily limit for sending emails." | The Daily Email Limit or Salesforce's allowance is used up. Run the email step again tomorrow, or use Dryad Mailer. |
| PDF steps fail | Lower Receipt Batch Size, then run the Create Missing PDFs button. Very long templates or large images make each PDF heavier. |
| Batch Receipts screens are slow to count or list gifts | With millions of gifts, consider Enable Index Optimization. See the Receipt Settings article. |