Chapters · 5
"There Are Problems With the Contents" in Word
Ready
Repair a Word file
Checked and repaired on your device. The file is never uploaded.
When Word says a file "cannot be opened because there are problems with the contents," an XML part inside the .docx is broken. Select Details to see which one: it names the part, such as /word/document.xml, and the line and column where Word stopped reading. Drop the file into the tool above to find the broken part, repair it and download a working copy.
The chapters below explain how to read the details, what causes the error, how to fix the XML by hand, why files made by AI tools hit it so often, and what the browser repair changes.
01
Reading the error details
The message reads: "The file [name].docx cannot be opened because there are problems with the contents." Under Details, Word adds a reason and a location, for example:
- "Unspecified error" with "Location: Part: /word/document.xml, Line: 2, Column: 18342"
- "The name in the end tag of the element must match the element type in the start tag."
A .docx file is a ZIP archive of XML files, and Part is the path of one of them.
What each part holds
/word/document.xml: the main text, tables and the position of every picture./word/header1.xml,/word/footer1.xml: headers and footers, one file each./word/styles.xml: paragraph and character styles./word/numbering.xml: bulleted and numbered lists./word/footnotes.xml,/word/endnotes.xml,/word/comments.xml: notes and comments./[Content_Types].xml: the list that tells Word what each part is.
Line and Column
Word saves most of a part on a single long line, so Line is often 2 and Column is the useful number: the character where reading failed. The actual mistake can sit a little before that spot, for example a tag opened earlier and never closed.
02
What breaks the XML
The XML inside a .docx has strict rules: every tag that opens must close, in the right order, and some characters must be written as codes. One slip anywhere stops Word. The usual causes:
- An interrupted save or copy. The part ends in the middle of a tag, so the tags before it are never closed.
- A program that wrote the file badly. Translation tools, report generators, mail merge add-ins and scripts build .docx files with their own code. Errors such as tags closed in the wrong order or an attribute written twice come from there.
- A character XML doesn't allow. Text pasted from a web page or a database can carry invisible control characters. An & written as is, instead of as
&, breaks the part too.
If the details name a header or footer part, the damage is there, not in the main text. Word still refuses the whole file.
03
Fix the XML by hand
This works when you are comfortable editing code. Work on a copy.
- Rename the copy from .docx to .zip and extract it.
- Open the part named in the details, such as
word/document.xml, in a code editor that shows line and column numbers. - Go to the line and column from the message and look just before it for a tag left open, tags closed in the wrong order, a bare & or an odd invisible character.
- Fix it and save the part.
- Select the contents of the extracted folder (not the folder itself), compress them into a new ZIP file, and rename it back to .docx.
The top level of the new archive must hold [Content_Types].xml and the word folder. If they sit inside an extra folder, Word won't open the file.
If it doesn't work
- Word now names a different spot: there was more than one mistake. Repeat the steps for the new location.
- The part is cut off at the end: a save stopped partway, and the missing text can't be typed back from the XML. Close the open tags so the rest opens, or let the repair tool do it.
04
Files made by ChatGPT, Claude and other AI tools
AI assistants that hand you a .docx don't use Word. They write the file with a code library, and a small slip in that code is enough for Word to refuse the result: an unescaped & from your prompt, a control character copied from a web page, a tag closed out of order, or a link to an image that was never added.
Two ways out:
- Ask for the file again. A new attempt often comes out clean.
- Repair the file you have. Drop it into the tool above. These slips are exactly the XML problems it fixes, and the diagnosis shows which part was wrong.
05
What the browser repair changes
The tool above reads every XML part in the file, not just the one Word named, so it also finds the next problem Word would have stopped on. For each part it:
- closes tags a cut left open and drops the half-written tag at the end;
- closes skipped tags and removes end tags that match nothing;
- writes stray & characters as
&and removes characters XML forbids; - drops repeated attributes, keeping the first.
It changes as little as it can. The diagnosis names each part it changed and says whether any content was lost.
When it says "No damage found"
The XML is valid, but Word may still object to what it says, such as elements in an order Word doesn't expect. Try Open and Repair in Word, or open the file in another word processor and save a fresh copy. The steps are in word found unreadable content.
Fix the file now
Drop the document into the repair tool at the top of this page. It's free, and the file stays on your device.
Troubleshooting
The Details button shows nothing useful
The details often say only "Unspecified error". Drop the file into the repair tool: its diagnosis names every part with a problem.
The repaired file opens but text is missing at the end
The part was cut short when the file was saved or copied, and the missing text was never in the file. Look for an earlier version, an emailed copy or a backup.
The same error comes back after I save in Word
Save the repaired copy under a new name and keep working in that one. If the error returns, an add-in may be writing the bad XML: start Word without add-ins and test again.
Questions
Frequently asked questions
Is "unspecified error" the same problem?
Yes. Word shows "Unspecified error" in the details when it can't describe the XML fault more precisely. The location after it still points to the part that failed.
Can Google Docs open the file?
Sometimes. Google Docs and other word processors read .docx files with their own code and may accept a file Word rejects. If one opens it, save a fresh copy as a Word document.
Will I lose anything by repairing the XML?
Only what was already broken. The repair keeps every readable part and lists anything it had to drop, such as the half-written tag at the end of a cut file.
Is my file uploaded when I use the repair tool?
No. The repair runs in your browser and the file stays on your device.