What you’ll see

Document is too large to process. Please upload a smaller file or split the document into multiple files

Why it happens

Each template or file in a merge can be at most 5 MB (see Limits and quotas). One of the files in this request (the template or an included file) is larger than that.

How to fix it

  1. Compress or resize large images in the template. High-resolution photos and logos are the most common cause. See Images are missing or broken for how image size affects a document.
  2. Remove embedded objects, fonts or attachments the document doesn't need.
  3. If the document is genuinely large, split it into several smaller templates or files. To produce one document from several templates, see Merge several templates into one document.

For other size-related failures, such as timeouts, see Large documents, timeouts and limits.

Who can fix it

  • You (or whoever maintains the template): compress images, remove what the document doesn't need, or split the template.
  • Docs Made Easy support: if every file in the merge is under 5 MB and you still see this message.

What to send support

  • the Error code and Reference from the message (copy the whole message if you can)
  • your Salesforce Org ID (How to share your Org ID)
  • the template name, the solution name or ID, and the size of each file in the merge
  • a link to the record you generated from
  • the time it happened, with your time zone