Skip to Content
Documents & TemplatesHow Document Generation Works

How Document Generation Works

When you click Generate Document, ScopeStack compiles your project data and merges it into your document template. The result is a finished Word, PowerPoint, or Excel file ready to send to a client.

Generation is fast. As of November 2025, data compilation is over 90% faster than before, and content merging completes in under a second for most projects.

Tag Templates Are the Standard Format

Document generation in ScopeStack is built around Tag Templates — industry-standard templates that use tag syntax to insert project data. If you are setting up templates for the first time, start with Tag Templates.

Legacy Mail Merge templates continue to work but are no longer the recommended format. See V1 Mail Merge Templates (Legacy Reference) for details.

Single Document Generation

For a single document, click Generate Document and select your template. Choose Download, click Generate, then click Save on the File Naming step. When generation is complete, click Download to save the file.

On this screen: When the file is ready, the Generate Document dialog shows “Document generated successfully!” with Cancel and Download buttons.

Which template is pre-selected

The template dropdown starts with the template saved on the project, if you can use it. A new project with no template selected starts with the account’s active default template. If your account has only one template, ScopeStack uses it when no default was assigned. See Setting a Default Template Through the API. Generating a new document with a different account template can change the selection for everyone who opens the project.

This matters most when you are testing a template change. Generating from a project that is pointed at a different template shows you none of your edits, which reads as a broken template rather than a wrong selection. Check the dropdown before concluding an edit did not take, and prefer a project you know carries real content in the fields you changed — a project where those fields are empty renders nothing no matter how correct the template is.

Batch Document Generation

ScopeStack lets you generate multiple documents at once from a single project. This is useful when a project requires several deliverables — for example, a Statement of Work, a pricing summary, and an executive overview — that all need to go out together.

From the document generation dialog, select more than one template. ScopeStack will process all of them in a single request.

On this screen: Below *Document Type, choose Download or Email. Electronic Signature also appears when the account has DocuSign enabled and the dialog opens on an account document template. Generate opens File Naming, which shows a *Filename field for each selected template. Click Save to submit the request.

Receiving your documents: For a batch with Download delivery, wait for generation to finish. Then click Download to save the ZIP file.

Customizing file names: During the generation request, you can edit the file name for each document before generating. Draft versions often have timestamps in their names — you can remove those before generating the final version so the file name is clean when it arrives in the client’s inbox.

Bulk email and Electronic Signature delivery: Choose Email to send the generated documents as attachments in one email. For Electronic Signature, ScopeStack sends all the generated documents in one DocuSign envelope, with one set of signers. If a requested document is no longer available when ScopeStack tries to send the envelope, generate the documents again and resend.

Per-document error reporting: If one or more documents fail to generate, the others are not affected. ScopeStack shows a status message for each document in the request, with individual download links for the ones that succeeded. A single failed document does not block access to the rest. You can re-request only the document that failed without regenerating the entire batch.

On this screen: The document generation results view after a batch request completes. Each template from the request is listed with a status indicator. Successful documents show a download link next to their name. A failed document shows an error status message in place of a download link, while the other documents remain available for individual download.

PDF Output

ScopeStack can convert generated Word documents to PDF as part of the generation process. To receive a PDF instead of the default Word (.docx) format, check Convert Word Document to PDF? in the Generate Document dialog, below *Document Type.

The checkbox is shown only for your account’s document templates, not for ScopeStack spreadsheets or custom reports. Whether it appears is decided by the item the dialog opens with: the template saved on the project (normally the one it last generated), if you can still use it, or otherwise the first item in the list. Document templates come first in that list, so this is a document template whenever you can see at least one. If the last-generated template has been archived, or is assigned only to teams you are not on, the dialog opens on the first template instead. If you cannot see any document templates, the dialog opens on a custom report or ScopeStack spreadsheet and the checkbox does not appear. Changing the selection in *Document Type afterwards does not show or hide it. So if you switch to only spreadsheets or custom reports, the checkbox stays on screen but has no effect on them: only document templates are converted to PDF.

The conversion happens server-side after the document template is merged with your project data. The resulting PDF preserves the layout and formatting of the Word template.

If a template you expect is missing from *Document Type, ask an account admin to check the template’s team assignments, or contact ScopeStack Support.

Watermarked PDFs for unapproved projects: When Watermarked Documents is on, ScopeStack adds a watermark to documents generated from your account templates while the project is outside the Approved, Won, and Lost statuses. For those documents, ScopeStack produces a PDF even if you leave Convert Word Document to PDF? unchecked. The default watermark is DRAFT. The text can vary by account locale.

To change the setting, go to Settings > Account > Account Preferences. You need the Account Settings permission at the Manage level. See Account Settings.

On this screen: The Account-wide Preferences section shows the Watermarked Documents toggle when your plan includes Watermarking.

PDF output works with both single and batch document generation. In a batch request, you can choose PDF output for all documents in the batch.

Generated Documents Are Cached

To keep generation fast, clicking Generate returns the most recently generated version of a document when nothing about the project’s data has changed since it was produced. This is usually what you want: repeated downloads of the same document are instant.

Changes to account settings, such as payment terms or watermarking, can leave a cached copy in place. Replacing a template file marks its prior outputs for deletion when the upload is saved. A background job removes them, so an old file can still be present while deletion is pending.

On this screen: The Generate Document dialog. Below the delivery options, a Force regeneration? checkbox forces ScopeStack to rebuild the document from the current template and project data instead of returning the cached version.

If you need a fresh file right away after changing a setting or replacing a template, generate again with Force regeneration? checked.

A Project Change Clears Its Generated Documents

A generated document is a snapshot of one project state, so when the project changes, the documents already generated from it are cleared. They are removed rather than marked stale: a link to a document generated before the change stops working instead of returning an older version.

This is deliberate. It keeps a document that no longer matches the project from being downloaded and sent to a customer.

In the app you will rarely notice, because you change something and generate again. It matters far more over the API, where a script can change a project moments after generating from it. A create, apply-a-blueprint, approve, generate, download sequence run back to back can finish faster than the project settles, and the download then fails on a document that existed seconds earlier.

Changes that clear generated documents include edits to the project itself and to its services, subservices, primary contacts, conditions, attachments and versions, and renaming a task. Project financials also recalculate on a short delay after an edit, and that recalculation counts as a change, which is why a document generated right after a large edit can disappear without anyone touching the project again.

If you generate over the API: make generation the last step, let the project settle first, and download the file promptly. If a download fails on a document you just created, generate it again rather than treating it as an error.

What Causes Delays?

Generation is fast under normal conditions, but delays can occur:

  • High usage: If many users are generating documents simultaneously, a short queue may form.
  • Browser issues: The document may have finished generating but your browser did not receive the completion signal. Refreshing the page will often reveal the document is already available.
  • Rare edge cases: In unusual circumstances a request may appear stuck, though this is uncommon.

What to Do If Generation Is Slow

  • Wait 5 minutes, then refresh the page without force-regenerating.
  • If the document still has not appeared, reach out via chat. We can confirm whether the request is still in the queue or already complete.
  • Clicking Generate again adds a new request to the queue — it does not cancel the original.

Troubleshooting

Tags not replaced in the output

When tags appear in the finished document as literal text rather than being replaced with data, there are three common causes:

  1. Wrong field path. Tag Templates (V2) require the project. prefix for project-level fields. A tag that worked in a V1 Mail Merge template may silently fail in a V2 template if it omits this prefix. Open the merge fields view for the project (gear icon > View Merge Fields V2) and confirm the exact path to the field you are referencing.

  2. Unsupported expression. The V2 template engine uses an Angular expression parser that does not support standard JavaScript methods. Tags containing arrow functions, string instance methods like .includes() or .replace(), or array methods like .filter() and .map() will fail silently — the tag is left unreplaced without any error message. Replace these with supported pipe filters. See Template Expression Reference for the full list of supported filters.

  3. Wrong template format. V1 Mail Merge syntax uses <<= field >> angle-bracket tags inserted via Word’s Mail Merge field feature. V2 Tag Template syntax uses {field} single-brace tags typed directly into the document. Using V1 syntax in a V2 template, or V2 syntax in a V1 template, produces unreplaced tags. On the template management page, check Template Format: Mail Merge Template (Legacy) reads the angle-bracket syntax and Tag Template reads the single-brace syntax.

    ⚠️ Check Template Format, not Data Format. These are two different settings and only Template Format decides which engine reads your file. The Data Format (v1 / v2) dropdown selects which shape of merge data is handed to that engine. Switching Data Format on a Mail Merge file does not convert it to a Tag Template. The Mail Merge engine still runs, but it now receives the v2 data shape, which the <<= field >> names in your document no longer match, so fields come out empty and loops over collections that have moved can fail the generation outright. If you want to move a template from Mail Merge to Tag, that is a rewrite of the tags in the document, not a dropdown change — see Migrating from V1 to V2.

Document is corrupt or Word will not open the file

Invisible Unicode characters in source content can corrupt Word and PowerPoint output. The most common offenders are soft hyphens (U+00AD) and zero-width spaces (U+200B), which are introduced by pasting text from Word, Google Docs, or CMS editors. These characters are invisible in the ScopeStack editor but survive into the generated file, where they can break the XML structure that Office applications require.

To clean source content, paste it through a plain text editor (such as TextEdit in plain text mode, Notepad, or a terminal) before entering it into ScopeStack. The plain text round-trip strips invisible formatting characters. If a specific service description or language field is consistently causing corrupt output, that field is the likely source.

Revenue shows $0

When a service shows hours and subservice entries but the pricing total is zero, the cause is almost always a parent service with a quantity of zero. In ScopeStack’s pricing model, revenue on a service rolls up through the parent quantity: if the parent quantity is 0, the calculated revenue is 0 regardless of how many hours or subservices are configured beneath it. Open the service in the project, locate the quantity field on the parent service row, and set it to 1 (or the appropriate value). The pricing total will update immediately.

A service or subservice is missing entirely from the generated document

A quantity of zero can change which lines print. The behavior depends on your template format.

  • Mail Merge (Legacy) templates: a quantity-zero service is dropped from the document entirely, along with everything beneath it. Its subservices, their descriptions, and their language field content never reach the page.
  • Tag templates: a quantity-zero service still renders, typically showing $0 revenue, matching the pricing screen described above.
  • Both formats: a quantity-zero subservice is always dropped, no matter what its parent’s quantity is.

In V2 merge data, an active service with quantity zero can still contribute text to project-wide language fields. To show that text only when the service has a positive quantity, put it in a service-level template section and check that quantity > 0 before printing it.

A whole phase is missing from the generated document

When an entire phase and everything in it is absent, check the template before you check the project.

Templates handle phases in one of two ways, and it is worth knowing which yours does:

  • Some templates loop over every phase generically. A phase you add later appears automatically, as long as it has services in it.
  • Others contain a separate block for each phase, written when the template was built. In that case a phase with no block cannot appear in that document, no matter how its services are configured, and no change to the services will bring it back.

The second pattern is the common cause, and it is easy to miss because nothing errors. The tell is that the phase is missing from every document type you try, and that changing service categories, quantities, or descriptions makes no difference. It is also more likely if the phase is newer than the template, or was added after the template was last edited.

Two things to rule out first, since they are quicker to check:

  • The phase needs at least one active service typed as Professional Services. On Mail Merge (Legacy) templates it also needs a quantity above zero.
  • A per-phase block usually has two parts that are controlled separately: the section heading, and the list of services underneath it. If you see the heading with nothing under it, the second part is what is missing — not the first.

Adding a phase block is covered in Tag Templates and, for the older format, in V1 Mail Merge Templates. If you would rather we make the change, contact support with the template name and the phase you need added.

The service remains visible and editable in the project the whole time, which is what makes this hard to spot. Nothing in the editor warns you that the line will be omitted. If a service, or a whole branch of subservices, is unexpectedly absent from a generated document, check the quantity on the parent service row first.

New to ScopeStack?

ScopeStack automates scoping, pricing, and SOW generation for IT services teams. See how it fits your process.

Book a demoBrowse the docs
Last updated on