Docs Made Easy limits come from three places: the app itself (such as file size), your Docs Made Easy plan (how many documents per period) and your Salesforce org (API requests, Apex governor limits, file storage). Check them before you plan a large template or a bulk job. If something already failed, go to Large documents, timeouts and limits for the fixes.

Known limits

LimitValueWhen you hit itSource
Template file size5 MB per template. Larger templates aren't allowed, and the generated file stays within that sizeDME-DOC-001, "Document is too large to process"Docs Made Easy
Emailed documentsA document that's too large is left off the emailThe email is sent without the attachmentDocs Made Easy
Rows per table, and records per relationship or queryAbout 500. This is a soft limit, not a hard oneGeneration slows down and performance may sufferDocs Made Easy
Generation time on the Composer pageNo timeout, as long as templates stay within these limitsNoneDocs Made Easy
Documents on the Basic version50 per month and 500 per year. The monthly limit resets every month on the app installation date; the yearly limit renews on the installation date the following yearDME-LIC-001, "Usage policy violation". Generation stops until the limit resets or the plan changesReasonable Use Policy
Records per bulk batchConfigurable: set the batch size you needNoneDocs Made Easy
Salesforce API requestsYour org's allowance per rolling 24 hours, shared by every app and integrationDME-SF-005, "TotalRequests Limit exceeded"DME-SF-005
EmailsSent through Salesforce, so your org's Salesforce email limits applyA Salesforce email limit errorSalesforce behaviour
Currency cultures in one templateUp to 5 (CurrencyCulture1 to CurrencyCulture5)No error documentedCurrencyCulture, v1.19.0
Image formats in the template editorPNG, JPG and JPEGNo error documentedv1.11.0
Apex data relationshipsSalesforce governor limits (heap size, CPU time, SOQL queries) apply to your classA Salesforce limit exceptionSalesforce behaviour; see Apex data relationships
Generated files in SalesforceCount against your org's Salesforce file storageSalesforce storage warningsSalesforce behaviour; see Where generated documents go

What counts toward the quota

  • Generated documents count, from the Composer page, Flow, bulk, Quick Merge and the API.
  • Merge previews count. A preview counts as a generated document, even though it saves nothing to the record.
  • Failed generations don't count.

Administrators track usage on the Usages tab in Docs Made Easy Pro. It shows how many documents were generated, not how many are left, so compare the total with your plan limit yourself.

Limits still to be confirmed

LimitValueWhen you hit itSource
Maximum image size and dimensionsTo confirmTo confirmNone
Salesforce API requests used per documentTo confirmDME-SF-005None
NumberCulture: how many at onceTo confirmTo confirmNone
Timeouts for Flow and bulk runsTo confirmTo confirmNone

Plan for the limits

  • Keep templates small. High-resolution images are the most common reason a template gets too large. Compress them before you upload the template. See Images missing or the wrong size.
  • Keep tables to about 500 rows. Above that, generation may slow down.
  • Pull only the data you need. Add only the relationships the template uses on Gather Data, filter queries to the current record with pv0, and set a Limit on queries. See Filter a query to the current record (pv0).
  • Schedule large bulk jobs. On a Document Bulk Merge record, choose Schedule Batch to run outside working hours, which spreads plan quota and API requests. See Generate bulk documents.
  • Watch your API usage. Your Salesforce administrator can check API Requests, Last 24 Hours in Setup → Company Information.
  • Watch file storage. Bulk jobs that save one file per record add up. Review storage in Setup → Storage Usage.

Example: a monthly invoice run

You plan to generate an invoice for 3,000 accounts each month with Document Bulk Merge. Before the first run, check:

  1. The template file is well under 5 MB, with compressed logos, and its tables stay under about 500 rows.
  2. Your plan's document limits cover 3,000 documents, plus the documents users generate by hand. If not, contact us about the plan, or split the run over several days.
  3. Your org has spare Salesforce API requests in the 24 hours of the run, and the batch is scheduled outside working hours.
  4. Your org has file storage for 3,000 more files.