Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Word cannot open a document "because there are problems with conte

6,300 views
Skip to first unread message

alexrose2002

unread,
Oct 3, 2009, 12:52:01 PM10/3/09
to
I have Vista for Home and my problem is with a Word document - I use this
particular file a lot, and suddenly, Word cannot open it. The dialog box
reads "Word cannot open (filename) because there are problems with the
content". The only options then are "OK" and "Details". When I click on the
Details button, it says "Illegal qualified name character Location:...."
There is no option to fix/repair, or anything else. There is nothing unusual
about this file, it is just text. ALL of my other Word document files are
fine, only this one will not open. I have the file backed up, and the back
up file has the same problem now. I also tried the document text recovery,
and that did not help. It just converted the file into symbols so it was
completely unhelpful. If anyone has any ideas, I would really appreciate
it!! Thank you.

Stefan Blom

unread,
Oct 3, 2009, 2:37:55 PM10/3/09
to
Try Open and Repair: Navigate to the file in the Open dialog box (which you
can display by clicking Ctrl+O). Select it and then click the arrow next to
the Open button. Click Open and Repair.

--
Stefan Blom
Microsoft Word MVP

"alexrose2002" <alexro...@discussions.microsoft.com> wrote in message
news:193E7117-9A4B-4937...@microsoft.com...

Dian D. Chapman, MVP

unread,
Oct 3, 2009, 4:15:32 PM10/3/09
to

I'm guessing this is a Word 2007 document? If so...I'll also guess
that the file extension is .docx? Try renaming the file to .docm and
see if it opens then. BUT! Immediately after you click to attempt to
open the file...HOLD DOWN the shift key until the file is completely
opened!

In the 2007 format, when macros are added to document, the format must
be changed to .docm to acknowledge that there are macros contained.
This is the new (annoying) way to ensure that people cannot open a
file that contains a macro. However, if someone should change the file
extension from .docm to .docx, while it still contains macros, you
will get the error message that the file cannot be opened due to
problems with it.

If this is indeed the problem (although it is just one reason for that
message), then changing the file back to the .docm extension will
allow the file to be opened.

BUT! If it does contain a macro, particularly an unknown auto run
macro, it could be a virus. This is why you MUST hold down the shift
key as the file opens...which will disable a macro from running when
opening and could save you if this is the problem.

This may not be the issue...but it is one that I'm quite aware of and
you might as well give it a shot to see if this change will allow you
to recover your content. If it does open the file, then also hit Alt +
F11 and review/delete any VBA code you find in any of the modules
attached to that file.

Good luck...


Dian D. Chapman
Technical Consultant & Microsoft MVP, MOS Certified Instructor,
Editor/TechTrax Ezine, Technical Editor/Word & Office 2007 Bibles
https://mvp.support.microsoft.com/profile/Dian.Chapman

Dian's Soldiers' Site
http://www.mousetrax.com/Angels

Free Word Tricks eBook: http://www.mousetrax.com/books.html
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html
Free Computer Tutorials: http://www.techtrax.us

Tony Jollans

unread,
Oct 4, 2009, 9:10:02 AM10/4/09
to

Very few characters are illegal in names, so either the message is lying
(certainly possible) or the document has been corrupted. Unfortunately
recovery of corrupt Word 2007 documents is generally not possible, although
part of it may be recoverable, depending on where the corruption is. If all
else fails I'd be happy to take a look if you send me a copy of it.

--
Enjoy,
Tony

www.WordArticles.com

"alexrose2002" <alexro...@discussions.microsoft.com> wrote in message
news:193E7117-9A4B-4937...@microsoft.com...

alexrose2002

unread,
Oct 4, 2009, 9:00:01 PM10/4/09
to
Thank you so much everyone, I really appreciate all your suggestions and I
tried them all. Still, nothing has worked, and I still cannot open the file!
In the meantime, someone suggested to me that perhaps the problem is because
this was a Word file that I ONLY saved onto a flash drive. My computer
automatically saved a back up copy to my 'downloads/documents' file on the C
drive. Do you think that could be the problem? If that is the issue, is
there any way to prevent a Word document from self-corrupting when it goes
back and forth between a hard drive and a flash drive? I back up all my
files on flash drives for safety, but if this could cause files to corrupt,
how else can you protect the files?

Dian - to answer your questions, yes it is Word 2007 and the file extension
was .docx. I tried renaming it to .docm as you suggested and it still gave
me the same dialog box when I tried to open it with the new file extension.
Also - I don't understand macros so I never put any in this document on
purpose. Can a macro just randomly happen? The document has text only.

If anyone has any other ideas I would be most grateful. Thanks again!

Tony Jollans

unread,
Oct 5, 2009, 2:20:37 AM10/5/09
to

I'm not entirely sure what you're saying about the automatic backup but it
should not itself be the cause of any corruption. Saving to a flash drive
can, however, be a problem - but it isn't usually Word that causes it; the
most likely cause is failing to 'safely remove' the drive. If you backup to
flash drives make sure that the backup can be read after the flash drive has
been removed and re-inserted - only then is it safe to delete the version on
the hard drive.

Although there is a sort of resilience in the new xml formats, most of it is
lost in the (automatic) process of zipping, which also makes the 'recover
text' option useless. Without seeing the file it is difficult to know the
extent of the corruption, or what might be (manually) possible - I very much
doubt you'll be able to do anything in any other way.

--
Enjoy,
Tony

www.WordArticles.com

"alexrose2002" <alexro...@discussions.microsoft.com> wrote in message

news:42B5BEE9-0F90-426C...@microsoft.com...

Terry Farrell

unread,
Oct 5, 2009, 4:05:59 AM10/5/09
to
Flash drive is probably the problem. You'll find hundreds of posts of the
last decade regarding corrupt documents all down to using removable media
when working with Word (all versions). IT IS THE NUMBER 1 WAY TO CORRUPT
DOCUMENTS.

You should ALWAYS work using you local HDD and then Copy to/from your
removable media.

As a final test to see if there is anything recoverable, try the following
options:

Open using the Recover text from any file
Open in WordPad
Open using OpenOffice

But I have pessimistic because the error message regarding illegal name
suggests that the file contents are corrupt.

--
Terry Farrell - MSWord MVP

"alexrose2002" <alexro...@discussions.microsoft.com> wrote in message
news:42B5BEE9-0F90-426C...@microsoft.com...

Tony Jollans

unread,
Oct 5, 2009, 5:41:21 AM10/5/09
to
> Open using the Recover text from any file

Unfortunately, and often misunderstood, this does not work on Word 2007
format documents.

> Open using OpenOffice

That is worth a try.

--
Enjoy,
Tony

www.WordArticles.com

"Terry Farrell" <terryf...@msn.com> wrote in message
news:6EAB8FBD-FCC6-40CA...@microsoft.com...

Terry Farrell

unread,
Oct 5, 2009, 7:42:30 AM10/5/09
to

Thanks Tony. I wasn't aware that the 'Recover Text' doesn't work with the
new format.

Terry

"Tony Jollans" <My forename at my surname dot com> wrote in message
news:OSftPAaR...@TK2MSFTNGP02.phx.gbl...

Tony Jollans

unread,
Oct 5, 2009, 7:56:29 AM10/5/09
to
It works in the sense that it will recover text, but, because of the new
zipped format, there is no (meaningful) text to recover.

--
Enjoy,
Tony

www.WordArticles.com

"Terry Farrell" <terryf...@msn.com> wrote in message

news:238001A1-1C22-4E20...@microsoft.com...

Pamelia Caswell via OfficeKB.com

unread,
Oct 5, 2009, 9:21:33 AM10/5/09
to
I am really dismayed to hear this. The early MS talk about the new file
formats said that because the content is in a separate file from much of the
formatting, users would be less likely to lose their content. Either MS
reps said or I inferred that after unzipping the file, one could open the
xml file in a text editor and retrieve the text. I envision pasting he text
back into Word and cleaning up the <*> with find and replace. (I have
accidentally deleted too much in a document.xml and made it unopenable, but
I didn't try to recover it because I had been working on/playing with a copy.
)

Are you saying that the zip file or the document.xml file cannot be opened in
a text editor?

Pam

Tony Jollans wrote:
>Very few characters are illegal in names, so either the message is lying
>(certainly possible) or the document has been corrupted. Unfortunately
>recovery of corrupt Word 2007 documents is generally not possible, although
>part of it may be recoverable, depending on where the corruption is. If all
>else fails I'd be happy to take a look if you send me a copy of it.
>

>>I have Vista for Home and my problem is with a Word document - I use this
>> particular file a lot, and suddenly, Word cannot open it. The dialog box

>[quoted text clipped - 12 lines]


>> completely unhelpful. If anyone has any ideas, I would really appreciate
>> it!! Thank you.

--
Message posted via http://www.officekb.com

Tony Jollans

unread,
Oct 5, 2009, 10:12:13 AM10/5/09
to
The 2007 xml package format is, itself, reasonably robust. There are some
problems that can occur with it (the most common one I see is with TOCs in
largish documents), and they can generally be fixed - I woudn't say it's
easy (although it is easier than trying to mend earlier binary files), but
it's usually possible.

The problem comes with the zip element of it. The most common form of
corruption is nothing to do with Word, or the xml; it is corruption of the
file on disk, more often than not related to external drives or removable
media. If part of the zip structure is damaged, it may not be possible to
unzip the file at all, so working with the xml is out of the question.

Very loosely, zip 'archives' are composed of individual files; there is a
catalogue describing the archive, and each file within it consists of a code
table followed by the zip-encoded data. If the catalogue is corrupt, it may
be possible to do something with a hex editor; if the code table of any file
is corrupt, that file is essentially lost; if part of the encoded data is
corrupt, that part of it, and some or all of what follows, is completely
lost.

As I said in one of my replies to Terry, the 'recover text from any file'
option is of no use as that simply reads the binary data looking for text,
but zipped data is not text, so it never finds any to recover.

--
Enjoy,
Tony

www.WordArticles.com

"Pamelia Caswell via OfficeKB.com" <u43222@uwe> wrote in message
news:9d238f5c2f52e@uwe...

Tony Jollans

unread,
Oct 5, 2009, 10:20:47 AM10/5/09
to
For what it's worth, my guess in this particular case is that a part of one
of the files in the zip archive (document.xml is usually the largest and
most likely to be the subject of corruption) has got corrupted. The unzip
has 'worked' but the process has only got a certain way into the corrupt
file and then, essentially, found rubbish that neither Word nor any xml
editor can make sense of. The content up to that point (wherever it is) is
probably recoverable by manual editing of the xml text.

--
Enjoy,
Tony

www.WordArticles.com

"Tony Jollans" <My forename at my surname dot com> wrote in message

news:eenenXcR...@TK2MSFTNGP04.phx.gbl...

Pamelia Caswell via OfficeKB.com

unread,
Oct 5, 2009, 5:27:56 PM10/5/09
to
Thank you for answering. After I wrote you, I opened in Word Pad a small
document.xml file that I had deliberately and then copied and pasted it into
Word as unformatted text. Getting rid of the xml codes was easy with find: \
<*\> replace with _nothing_. That left me with my text and lots of nearly
empty paragraphs. If I had to do it often, I'd figure out a better search
strategy. I'm relieved that the content is still obtainable without too much
work.

The nice thing about xml and html is that they could be examined by a parser
that can tell you where the error is. A few years ago, I used one to help me
upgrade old html code to version 4. There may not be any such programs
available for W2007 & 2010 now, but surely there will be.

Regards,
Pam

Tony Jollans wrote:
>For what it's worth, my guess in this particular case is that a part of one
>of the files in the zip archive (document.xml is usually the largest and
>most likely to be the subject of corruption) has got corrupted. The unzip
>has 'worked' but the process has only got a certain way into the corrupt
>file and then, essentially, found rubbish that neither Word nor any xml
>editor can make sense of. The content up to that point (wherever it is) is
>probably recoverable by manual editing of the xml text.
>

>> The 2007 xml package format is, itself, reasonably robust. There are some
>> problems that can occur with it (the most common one I see is with TOCs

>[quoted text clipped - 58 lines]

Dian D. Chapman, MVP

unread,
Oct 8, 2009, 10:34:01 PM10/8/09
to
No. A macro can't "just happen." However, if you're not sure what
you're doing, you COULD record a macro that would end up in the file,
but more importantly...since I didn't know the origins of the doc...it
may have been possible that you got the file from someone else that
added a macro and renamed it?

Anyway, you can try renaming the document from [whatever].docx to
[whatever].zip. Then right click it from Windows Explorer (which you
can open by hitting Windows Key + E) and choose to EXTRACT ALL. This
will give you a folder with the various PARTS of the file (assuming
the file is not too corrupted to be extracted). From there, you may be
able to salvage the file???

Good luck...

Dian D. Chapman
Technical Consultant & Microsoft MVP, MOS Certified Instructor,
Editor/TechTrax Ezine, Technical Editor/Word & Office 2007 Bibles
https://mvp.support.microsoft.com/profile/Dian.Chapman

Dian's Soldiers' Site
http://www.mousetrax.com/Angels

Free Word Tricks eBook: http://www.mousetrax.com/books.html
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html
Free Computer Tutorials: http://www.techtrax.us

On Sun, 4 Oct 2009 18:00:01 -0700, alexrose2002

John Hawker

unread,
Oct 23, 2009, 5:42:01 PM10/23/09
to
I've been having same/very simialr problem. Went to MSOffice site and ran
thru all their suggestions. Accidentally discovered the underlying template
file was "probably" corrupted. Opened Word with blank doc and inserted
problem template then saved over bad template. Docs open fine now. Would be
interested if that fixes other problems as well.

John Hawker

unread,
Oct 28, 2009, 4:12:01 PM10/28/09
to
Follow up: Found out a little later that document protection is causing my
problem. I have this issue over several different templates, all having form
fields. If I unprotect the template, all documents open without problem.

ChrisJ

unread,
Nov 8, 2009, 9:26:35 PM11/8/09
to
On Oct 23, 4:42 pm, John Hawker <JohnHaw...@discussions.microsoft.com>
wrote:

> I've been having same/very simialr problem.  Went to MSOffice site and ran
> thru all their suggestions.  Accidentally discovered the underlying template
> file was "probably" corrupted.  Opened Word with blank doc and inserted
> problem template then saved over bad template.  Docs open fine now.  Would be
> interested if that fixes other problems as well.
>

Hi John,
Can you be more specific regarding your text: "Opened Word with blank
doc and inserted
> problem template then saved over bad template." I don't understand what you did here. Thank you.

Terry Farrell

unread,
Nov 9, 2009, 4:36:50 AM11/9/09
to
1. Open Word to a blank document
2. Insert, File and choose bad.dot
3. SaveAs bad.dot

(Where bad.dot is the name of the problem template.)

--
Terry Farrell - MSWord MVP

"ChrisJ" <cja...@gmail.com> wrote in message
news:59fa0b6d-6da6-4964...@u20g2000vbq.googlegroups.com...

alexs

unread,
Apr 21, 2010, 12:12:50 PM4/21/10
to

I have read the majority of the reviews online and still I am not able to fix this issue. I have renamed the file. I have changed the way the document opens from docx. to docm. and still the error message continues. I have tried using the 'OPEN and REPAIR' and no still the problem continues. I even tried hold down the SHIFT button while the file opens. Would you be so kind as to shedding some light in resolving this issue. Thank you in advance.


Tony Jollans wrote:

Very few characters are illegal in names, so either the message is

04-Oct-09

Very few characters are illegal in names, so either the message is lying
(certainly possible) or the document has been corrupted. Unfortunately
recovery of corrupt Word 2007 documents is generally not possible, although
part of it may be recoverable, depending on where the corruption is. If all
else fails I'd be happy to take a look if you send me a copy of it.

--
Enjoy,
Tony

www.WordArticles.com

Previous Posts In This Thread:

On Saturday, October 03, 2009 12:52 PM
alexrose2002 wrote:

Word cannot open a document "because there are problems with conte


I have Vista for Home and my problem is with a Word document - I use this
particular file a lot, and suddenly, Word cannot open it. The dialog box
reads "Word cannot open (filename) because there are problems with the
content". The only options then are "OK" and "Details". When I click on the
Details button, it says "Illegal qualified name character Location:...."
There is no option to fix/repair, or anything else. There is nothing unusual
about this file, it is just text. ALL of my other Word document files are
fine, only this one will not open. I have the file backed up, and the back
up file has the same problem now. I also tried the document text recovery,
and that did not help. It just converted the file into symbols so it was
completely unhelpful. If anyone has any ideas, I would really appreciate
it!! Thank you.

On Saturday, October 03, 2009 2:37 PM
Stefan Blom wrote:

Try Open and Repair: Navigate to the file in the Open dialog box (which youcan
Try Open and Repair: Navigate to the file in the Open dialog box (which you
can display by clicking Ctrl+O). Select it and then click the arrow next to
the Open button. Click Open and Repair.

--
Stefan Blom
Microsoft Word MVP

On Saturday, October 03, 2009 4:15 PM


Dian D. Chapman, MVP wrote:

I am guessing this is a Word 2007 document?
I am guessing this is a Word 2007 document? If so...I will also guess


that the file extension is .docx? Try renaming the file to .docm and
see if it opens then. BUT! Immediately after you click to attempt to
open the file...HOLD DOWN the shift key until the file is completely
opened!

In the 2007 format, when macros are added to document, the format must
be changed to .docm to acknowledge that there are macros contained.
This is the new (annoying) way to ensure that people cannot open a
file that contains a macro. However, if someone should change the file
extension from .docm to .docx, while it still contains macros, you
will get the error message that the file cannot be opened due to
problems with it.

If this is indeed the problem (although it is just one reason for that
message), then changing the file back to the .docm extension will
allow the file to be opened.

BUT! If it does contain a macro, particularly an unknown auto run
macro, it could be a virus. This is why you MUST hold down the shift
key as the file opens...which will disable a macro from running when
opening and could save you if this is the problem.

This may not be the issue...but it is one that I am quite aware of and


you might as well give it a shot to see if this change will allow you
to recover your content. If it does open the file, then also hit Alt +
F11 and review/delete any VBA code you find in any of the modules
attached to that file.

Good luck...


Dian D. Chapman
Technical Consultant & Microsoft MVP, MOS Certified Instructor,
Editor/TechTrax Ezine, Technical Editor/Word & Office 2007 Bibles
https://mvp.support.microsoft.com/profile/Dian.Chapman

Dian's Soldiers' Site
http://www.mousetrax.com/Angels

Free Word Tricks eBook: http://www.mousetrax.com/books.html
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html
Free Computer Tutorials: http://www.techtrax.us

On Sunday, October 04, 2009 9:10 AM
Tony Jollans wrote:

Very few characters are illegal in names, so either the message is
Very few characters are illegal in names, so either the message is lying
(certainly possible) or the document has been corrupted. Unfortunately
recovery of corrupt Word 2007 documents is generally not possible, although
part of it may be recoverable, depending on where the corruption is. If all
else fails I'd be happy to take a look if you send me a copy of it.

--
Enjoy,
Tony

www.WordArticles.com

On Sunday, October 04, 2009 9:00 PM
alexrose2002 wrote:

Thank you so much everyone, I really appreciate all your suggestions and
Thank you so much everyone, I really appreciate all your suggestions and I
tried them all. Still, nothing has worked, and I still cannot open the file!
In the meantime, someone suggested to me that perhaps the problem is because
this was a Word file that I ONLY saved onto a flash drive. My computer
automatically saved a back up copy to my 'downloads/documents' file on the C
drive. Do you think that could be the problem? If that is the issue, is
there any way to prevent a Word document from self-corrupting when it goes
back and forth between a hard drive and a flash drive? I back up all my
files on flash drives for safety, but if this could cause files to corrupt,
how else can you protect the files?

Dian - to answer your questions, yes it is Word 2007 and the file extension
was .docx. I tried renaming it to .docm as you suggested and it still gave
me the same dialog box when I tried to open it with the new file extension.

Also - I do not understand macros so I never put any in this document on


purpose. Can a macro just randomly happen? The document has text only.

If anyone has any other ideas I would be most grateful. Thanks again!

"Dian D. Chapman, MVP" wrote:

On Monday, October 05, 2009 2:20 AM
Tony Jollans wrote:

I am not entirely sure what you are saying about the automatic backup but
I am not entirely sure what you are saying about the automatic backup but it


should not itself be the cause of any corruption. Saving to a flash drive

can, however, be a problem - but it is not usually Word that causes it; the


most likely cause is failing to 'safely remove' the drive. If you backup to
flash drives make sure that the backup can be read after the flash drive has
been removed and re-inserted - only then is it safe to delete the version on
the hard drive.

Although there is a sort of resilience in the new xml formats, most of it is
lost in the (automatic) process of zipping, which also makes the 'recover
text' option useless. Without seeing the file it is difficult to know the
extent of the corruption, or what might be (manually) possible - I very much

doubt you will be able to do anything in any other way.

--
Enjoy,
Tony

www.WordArticles.com

On Monday, October 05, 2009 4:05 AM
Terry Farrell wrote:

Flash drive is probably the problem.
Flash drive is probably the problem. You'll find hundreds of posts of the
last decade regarding corrupt documents all down to using removable media
when working with Word (all versions). IT IS THE NUMBER 1 WAY TO CORRUPT
DOCUMENTS.

You should ALWAYS work using you local HDD and then Copy to/from your
removable media.

As a final test to see if there is anything recoverable, try the following
options:

Open using the Recover text from any file
Open in WordPad
Open using OpenOffice

But I have pessimistic because the error message regarding illegal name
suggests that the file contents are corrupt.

--


Terry Farrell - MSWord MVP

On Monday, October 05, 2009 5:41 AM
Tony Jollans wrote:

Unfortunately, and often misunderstood, this does not work on Word 2007format
Unfortunately, and often misunderstood, this does not work on Word 2007
format documents.

That is worth a try.

--
Enjoy,
Tony

www.WordArticles.com

On Monday, October 05, 2009 7:42 AM
Terry Farrell wrote:

Thanks Tony.
Thanks Tony. I was not aware that the 'Recover Text' does not work with the
new format.

Terry

"Tony Jollans" <My forename at my surname dot com> wrote in message

On Monday, October 05, 2009 7:56 AM
Tony Jollans wrote:

It works in the sense that it will recover text, but, because of the newzipped
It works in the sense that it will recover text, but, because of the new

zipped format, there is no (meaningful) text to recover.

--
Enjoy,
Tony

www.WordArticles.com

On Monday, October 05, 2009 9:21 AM


Pamelia Caswell via OfficeKB.com wrote:

I am really dismayed to hear this.
I am really dismayed to hear this. The early MS talk about the new file
formats said that because the content is in a separate file from much of the
formatting, users would be less likely to lose their content. Either MS
reps said or I inferred that after unzipping the file, one could open the
xml file in a text editor and retrieve the text. I envision pasting he text
back into Word and cleaning up the <*> with find and replace. (I have
accidentally deleted too much in a document.xml and made it unopenable, but

I did not try to recover it because I had been working on/playing with a copy.
)

Are you saying that the zip file or the document.xml file cannot be opened in
a text editor?

Pam

Tony Jollans wrote:

--
Message posted via http://www.officekb.com

On Monday, October 05, 2009 10:12 AM
Tony Jollans wrote:

The 2007 xml package format is, itself, reasonably robust.
The 2007 xml package format is, itself, reasonably robust. There are some

problems that can occur with it (the most common one I see is with TOCs in

largish documents), and they can generally be fixed - I woudn't say it is


easy (although it is easier than trying to mend earlier binary files), but

it is usually possible.

The problem comes with the zip element of it. The most common form of
corruption is nothing to do with Word, or the xml; it is corruption of the
file on disk, more often than not related to external drives or removable
media. If part of the zip structure is damaged, it may not be possible to
unzip the file at all, so working with the xml is out of the question.

Very loosely, zip 'archives' are composed of individual files; there is a
catalogue describing the archive, and each file within it consists of a code
table followed by the zip-encoded data. If the catalogue is corrupt, it may
be possible to do something with a hex editor; if the code table of any file
is corrupt, that file is essentially lost; if part of the encoded data is
corrupt, that part of it, and some or all of what follows, is completely
lost.

As I said in one of my replies to Terry, the 'recover text from any file'
option is of no use as that simply reads the binary data looking for text,
but zipped data is not text, so it never finds any to recover.

--
Enjoy,
Tony

www.WordArticles.com

On Monday, October 05, 2009 10:20 AM
Tony Jollans wrote:

For what it is worth, my guess in this particular case is that a part of oneof
For what it is worth, my guess in this particular case is that a part of one


of the files in the zip archive (document.xml is usually the largest and
most likely to be the subject of corruption) has got corrupted. The unzip
has 'worked' but the process has only got a certain way into the corrupt
file and then, essentially, found rubbish that neither Word nor any xml
editor can make sense of. The content up to that point (wherever it is) is
probably recoverable by manual editing of the xml text.

--
Enjoy,
Tony

www.WordArticles.com

"Tony Jollans" <My forename at my surname dot com> wrote in message

On Monday, October 05, 2009 5:27 PM


Pamelia Caswell via OfficeKB.com wrote:

Thank you for answering.
Thank you for answering. After I wrote you, I opened in Word Pad a small
document.xml file that I had deliberately and then copied and pasted it into
Word as unformatted text. Getting rid of the xml codes was easy with find: \
<*\> replace with _nothing_. That left me with my text and lots of nearly
empty paragraphs. If I had to do it often, I'd figure out a better search

strategy. I am relieved that the content is still obtainable without too much
work.

The nice thing about xml and html is that they could be examined by a parser
that can tell you where the error is. A few years ago, I used one to help me
upgrade old html code to version 4. There may not be any such programs
available for W2007 & 2010 now, but surely there will be.

Regards,
Pam

Tony Jollans wrote:

--
Message posted via http://www.officekb.com

On Thursday, October 08, 2009 10:34 PM


Dian D. Chapman, MVP wrote:

No. A macro cannot "just happen.
No. A macro cannot "just happen." However, if you are not sure what
you are doing, you COULD record a macro that would end up in the file,
but more importantly...since I did not know the origins of the doc...it


may have been possible that you got the file from someone else that
added a macro and renamed it?

Anyway, you can try renaming the document from [whatever].docx to
[whatever].zip. Then right click it from Windows Explorer (which you
can open by hitting Windows Key + E) and choose to EXTRACT ALL. This
will give you a folder with the various PARTS of the file (assuming
the file is not too corrupted to be extracted). From there, you may be
able to salvage the file???

Good luck...

Dian D. Chapman
Technical Consultant & Microsoft MVP, MOS Certified Instructor,
Editor/TechTrax Ezine, Technical Editor/Word & Office 2007 Bibles
https://mvp.support.microsoft.com/profile/Dian.Chapman

Dian's Soldiers' Site
http://www.mousetrax.com/Angels

Free Word Tricks eBook: http://www.mousetrax.com/books.html
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html
Free Computer Tutorials: http://www.techtrax.us

On Friday, October 23, 2009 5:42 PM
John Hawker wrote:

I have been having same/very simialr problem.
I have been having same/very simialr problem. Went to MSOffice site and ran


thru all their suggestions. Accidentally discovered the underlying template
file was "probably" corrupted. Opened Word with blank doc and inserted
problem template then saved over bad template. Docs open fine now. Would be
interested if that fixes other problems as well.

"Pamelia Caswell via OfficeKB.com" wrote:

On Wednesday, October 28, 2009 4:12 PM
John Hawker wrote:

Follow up: Found out a little later that document protection is causing
Follow up: Found out a little later that document protection is causing my
problem. I have this issue over several different templates, all having form
fields. If I unprotect the template, all documents open without problem.

"John Hawker" wrote:

On Sunday, November 08, 2009 10:54 PM
ChrisJ wrote:

wrote:ranplateWould beHi John,Can you be more specific regarding your text:
wrote:
ran
plate
Would be

Hi John,
Can you be more specific regarding your text: "Opened Word with blank
doc and inserted

you did here. Thank you.

On Monday, November 09, 2009 4:36 AM
Terry Farrell wrote:

1. Open Word to a blank document2. Insert, File and choose bad.dot3.
1. Open Word to a blank document
2. Insert, File and choose bad.dot
3. SaveAs bad.dot

(Where bad.dot is the name of the problem template.)

--
Terry Farrell - MSWord MVP


Submitted via EggHeadCafe - Software Developer Portal of Choice
Excel 2007 Filter Tool
http://www.eggheadcafe.com/tutorials/aspnet/ae703d26-58da-423a-a2cb-1f3a46fbea8f/excel-2007-filter-tool.aspx

alexs

unread,
Apr 21, 2010, 12:18:25 PM4/21/10
to
I have tried everything. I have tried using the 'Open and Repair' button. I have changed the path name to docm. I have changed the name of the document. I have held the SHIFT key down while opening the document; and still the problem continues. Please be so kind as to helping me resolve this issue, thanks you very much in advance.

Tony Jollans wrote:

Very few characters are illegal in names, so either the message is

04-Oct-09

Very few characters are illegal in names, so either the message is lying
(certainly possible) or the document has been corrupted. Unfortunately
recovery of corrupt Word 2007 documents is generally not possible, although
part of it may be recoverable, depending on where the corruption is. If all
else fails I'd be happy to take a look if you send me a copy of it.

--
Enjoy,
Tony

www.WordArticles.com

Previous Posts In This Thread:

On Saturday, October 03, 2009 12:52 PM
alexrose2002 wrote:

Word cannot open a document "because there are problems with conte


I have Vista for Home and my problem is with a Word document - I use this
particular file a lot, and suddenly, Word cannot open it. The dialog box
reads "Word cannot open (filename) because there are problems with the
content". The only options then are "OK" and "Details". When I click on the
Details button, it says "Illegal qualified name character Location:...."
There is no option to fix/repair, or anything else. There is nothing unusual
about this file, it is just text. ALL of my other Word document files are
fine, only this one will not open. I have the file backed up, and the back
up file has the same problem now. I also tried the document text recovery,
and that did not help. It just converted the file into symbols so it was
completely unhelpful. If anyone has any ideas, I would really appreciate
it!! Thank you.

On Saturday, October 03, 2009 2:37 PM
Stefan Blom wrote:

Good luck...

Very few characters are illegal in names, so either the message is
Very few characters are illegal in names, so either the message is lying
(certainly possible) or the document has been corrupted. Unfortunately
recovery of corrupt Word 2007 documents is generally not possible, although
part of it may be recoverable, depending on where the corruption is. If all
else fails I'd be happy to take a look if you send me a copy of it.

--
Enjoy,
Tony

www.WordArticles.com

On Sunday, October 04, 2009 9:00 PM
alexrose2002 wrote:

--
Enjoy,
Tony

www.WordArticles.com

--
Enjoy,
Tony

www.WordArticles.com

Terry

--
Enjoy,
Tony

www.WordArticles.com

Pam

Tony Jollans wrote:

--
Enjoy,
Tony

www.WordArticles.com

--
Enjoy,
Tony

www.WordArticles.com

Regards,
Pam

Tony Jollans wrote:

Good luck...

"John Hawker" wrote:

On Wednesday, April 21, 2010 12:12 PM
alex s wrote:

Illegal Qualified Named Character


I have read the majority of the reviews online and still I am not able to fix this issue. I have renamed the file. I have changed the way the document opens from docx. to docm. and still the error message continues. I have tried using the 'OPEN and REPAIR' and no still the problem continues. I even tried hold down the SHIFT button while the file opens. Would you be so kind as to shedding some light in resolving this issue. Thank you in advance.

Submitted via EggHeadCafe - Software Developer Portal of Choice

Book Review: C# 4.0 In a Nutshell [O'Reilly]
http://www.eggheadcafe.com/tutorials/aspnet/6dc05c04-c7f9-40cc-a2da-88dde2e6d891/book-review-c-40-in-a.aspx

Tony Jollans

unread,
Apr 22, 2010, 6:10:04 AM4/22/10
to
If you have a corrupt Word 2007 format document - however it happened -
nothing you can do with Word, or any utility that I'm aware of, will help at
all. You have to fix the contents of the file; exactly what you have to do,
and exactly how much of the file is recoverable, depends on the type and
amount of corruption.

My offer to look at the file still stands. I will do what I can - manually,
as each case is different.

--
Enjoy,
Tony

www.WordArticles.com

"alex s" wrote in message news:201042112...@miners.utep.edu...

Herb Tyson [MVP]

unread,
Apr 22, 2010, 9:23:04 AM4/22/10
to
If all else fails... If it originally was a .docx file, I would try renaming
it as .zip and see if you're able to drill into the contents. That will at
least let you know whether that part of the structure is still intact.

If the file can be opened that way (in Windows Explorer, using the default
zip handler) the basic contents of the file can be found in the zip files
word folder, in document.xml. If you copy that file to a non-zip folder and
open it in Word using "Recover text from any file" (see below), you will at
least be able to salvage the text, albeit nestled among xml tags. (In
theory, you might be able to rescue a document by transplanting the
document.xml file into a non-corrupt .docx file, but I have never been
successful in doing that.)

Note: to access the "Recover text from any file" option, Word needs to offer
you the option to choose the conversion method. In Word Options (which you
get by clicking the Office button in Word), Advanced, General, enable
"Confirm file format conversion on open". Note that using "Recover text from
any file" won't work correctly directly on a .docx file, because the file is
a zip file and its compressed contents don't make sense as plain text.

Or... you could take Tony up on his offer. :-)

--
Herb Tyson MS MVP
Author of the Word Bible
Blog: http://word.herbtyson.com
Web: http://www.herbtyson.com

Jason Crajey

unread,
Mar 29, 2011, 7:42:32 AM3/29/11
to
For future reference, it may be beneficial to look in the autorecover directory if this or something similar ever happens again.
The directory for vista/7 is (I think)-
C/Users/-user name-/AppData/Roaming/Microsoft/Word/

The directory can be found by looking in the options menu of Microsoft Word under the 'Save' tab.

You may find an earlier version of the document and possibly a autosave document.

anniel...@gmail.com

unread,
Aug 9, 2012, 6:00:25 AM8/9/12
to
I personally think that you should try Docx repair tool as your Word file that you are unable to open might have been damaged or corrupted. And once it will be repaired I guess you can make access with it again. So try the tool for repairing your damaged Docx file.
For more details : http://www.docxrepair.org

alinaal...@gmail.com

unread,
Sep 10, 2013, 8:05:04 AM9/10/13
to
Word cannot open a document "because there are problems with contents”, don’t hesitate, I found opt solution form SysTools Word Recovery Tool to recover corrupt Word Document file.

Read More: http://www.corruptbackup.net/repair-corrupt-docx-files.html

alexis....@gmail.com

unread,
Oct 9, 2013, 3:50:32 PM10/9/13
to
You may make use of next instrument corrupted repair word recovery tool

http://www.word.recoverytoolbox.com/

hamid.ab...@gmail.com

unread,
Jan 9, 2014, 4:38:11 AM1/9/14
to
Hi Dian
I have problems with a number of word files (2007) that are not opened and I keep getting the error message saying there is a problem with the content.
I tried to email a number of but they bounced back. Could you give me your email address?
mine is
habd...@ut.ac.ir

maihoan...@gmail.com

unread,
Oct 24, 2014, 11:23:53 PM10/24/14
to
me too, i still can't open my files although i tried in many wasys. it note: The file <filename>.docx cannot be opened because there are problems with the contents. after a half day, all the files dissappeared
0 new messages