You are here:
Document Generation Limits
Review these document generation limitations.
| Document Generation Element | Standard Processing | Large Processing |
|---|---|---|
| Supported record volume | Up to 10,000 records with context transforms Up to 50,000 records without context transforms. | 50,001–100,000 records |
| Transaction size | Up to 1,000 lines | Up to 15,000 lines |
| Token data payload | Standard document generation payload guardrails apply for file sizes up to 25 MB, with throughput of up to 2,500 documents per hour. | Large-processing payload guardrails support file sizes up to 25 MB, with throughput capped at 100 documents per hour. To process files larger than 25 MB, enable the Use Large File Size Processing flag in the Document Generation Process request. |
| Token mapping method | Multiple methods supported | Context Service only |
| Context transforms with Apex | Supported, including Apex-based context transforms, subject to synchronous Apex governor limits. See Salesforce Document Generation Hourly and Daily Org Limits. | Supported with asynchronous Apex governor limits. See Salesforce Document Generation Hourly and Daily Org Limits. |
| Context transforms with Data Processing Engine (DPE) | Supported | Supported with Large Context type. Make sure, DpeLargeScaleTfrmEnabled permission is turned on in your org. Some features aren't supported, including custom nodes, SObject-related processing, and CRMA. |
| Use case | Standard document generation scenarios | Large-processing payload guardrails support files up to 25 MB. To process files larger than 25 MB, enable the Use Large File Size Processing flag in the Document Generation Process request. The number of concurrent large document requests an org can support depends on the size of each underlying context instance: Up to 2,500 document requests if each instance holds 50,000 records or fewer. Up to 100 document requests if any instance holds more than 50,000 records. |
