For the complete documentation index, see llms.txt. This page is also available as Markdown.

DOCX Generation Failure: SpellStart, GramStart, or GramEnd

Fix DOCX generation failures caused by Microsoft Word spelling and grammar markup inside the uploaded template.

This error usually means Microsoft Word saved proofing markup inside the .docx file.

S-Docs cannot process Word spelling and grammar markers during DOCX generation.

Common error messages

You may see one of these errors:

  • Failed to parse XML due to: could not determine namespace bound to attribute prefix w

  • spellStart

  • gramStart

  • gramEnd

These errors point to the same root cause.

Word added spelling or grammar suggestion markup to the template file.

Why this happens

When Word flags text with red or blue underlines, it can store extra XML tags in the file.

That markup can include proofing attributes such as w:spellStart, w:gramStart, or w:gramEnd.

If those tags remain in the uploaded template, DOCX generation can fail.

Fix the DOCX template

1

Open the template record

Go to the S-Docs template that is failing.

2

Download the latest uploaded DOCX

Open Template Editor.

Select Download most recently uploaded DOCX.

3

Open the file in Microsoft Word

Use Word to review the document for spelling and grammar markup.

4

Clear all proofing suggestions

Remove or resolve every spelling and grammar suggestion in the file.

Make sure all red and blue underlines are gone.

5

Save the cleaned DOCX file

Save the file after all proofing markup is removed.

6

Re-upload the DOCX file

Return to the template.

Use Choose File to upload the cleaned version.

7

Generate the document again

Test the template with a real record.

If the proofing markup was the issue, generation should now succeed.

Quick check

Before you re-upload, confirm:

  • no red spelling underlines remain

  • no blue grammar underlines remain

  • the saved file is still a .docx

Last updated

Was this helpful?