• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

Word documents corrupted after virus infection.

#1
Hi,

got a new customers pc here. she had a virus last week (one of the ucash ones) . she then "spent all day trying to fix it following instructions on various forums"

she has no idea what she actually did. the virus isn’t there anymore, but now nearly nothing works on the pc. sys restore doesn’t work and every single document is giving me the error "the open office xml file xxxx.docx cannot be opened because there are problems with its contents" details: "the file is corrupt and cannot be opened".

the files don’t open on my work pc either.

so far i have got the data off her disk and tried:
1) open and repair in word

2) renaming as a .zip and then trying to extract it (doesn’t work, zip file says it is empty) to get at the xml
3) running checkdisk on the disk and then trying to open on both her and my pc
4) using open office to open the files

all have failed. i have run out of ideas.

of course, she doesn’t have a backup (aaargh!).

so - i would like to know if there is any software i can buy that will bulk sort out all her docs, or if anybody has an idea as to how to get these to open.
thanks for your help!
 

marclant

ADSM.ORG Moderator
#2
This is a forum dedicated to backup/ restore software, primarily Tivoli Storage Manager/Storage Protect, but also a few others. So unless you have a good backup to restore from, you will likely not find the help you are looking for in this forum. If the files were damaged by a virus, check with your anti-virus provider or on one of their forums.
 
#4
Here is my updated guide on how to fix corrupt word documents with error "the file *.docx cannot be opened because there are problems with the contents.":

Change your file extension from docx to zip

Extract word/document.xml from the zip

Using a Programmer's Notepad (Such as Notepad++) replace >< with >\r\n< in extended mode to put each XML tag on its own line. (The expression \r\n stands for new line in windows.) You can use regexp mode or multi-line replace in other text editors, or copy a newline/hidden paragraph symbol and paste it in the replace box. (That works even in Word.)

Import the modified word/document.xml back into the zip archive

Rename the extension back from zip to docx

Attempt to open the document in Word now

Note that this time the error message will be more useful. It will tell you that the error is at: line 13540, as opposed to the meaningless line 2.

Go to the line specified (was 13540 for me) and remove it along with all of its XML children. (From opening tag: <w:something> to closing tag:</w:something>.) Make sure you keep the XML well formatted!

Import the modified document.xml and rename from zip to docx again.

Repeat steps 6-9 if necessary, until no more errors show up and your document is recovered.

If that doesn't help, then the only option is to try to recover the files with Word Recovery Toolbox. I think that you will be able to save at least some files if not all.

http://www.oemailrecovery.com/word_repair.html
 
#6
Hi, Thank you all for your time and great help. I really appreciate your feedback and I am very thankful for your time and support. Solved!
Many thanks.
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 9 16.7%
  • Keep using TSM for Spectrum Protect.

    Votes: 31 57.4%
  • Let's be formal and just say Spectrum Protect

    Votes: 9 16.7%
  • Other (please comement)

    Votes: 5 9.3%

Forum statistics

Threads
31,149
Messages
132,621
Members
21,321
Latest member
denisnetland
Top