DOCX needs repaired, but repair doesn't work and validator says there's no issues

Connor Shore 186 Reputation points
2023-08-30T19:35:41.9166667+00:00

Hello,

I have a question about a docx file. It was generated using our own doc gen engine. When you open the file it says the document needs to be repaired, however when you run the file through the OOXML validator, it says there are no issues with the document. Another bizarre thing is when you open the document, repair it and then save the repaired version, when you re-open the repaired document after closing, it says it needs to be repaired again. We haven't been able to identify what is causing the document be in the "need repairs" state. Could you identify the issue that is causing this?

Link to files: https://windwardstudios.box.com/s/io6idp7l61y28ubvdtwgschoe8w7yt8e

Thank you,

Connor

Microsoft 365 and Office | Open Specifications
Microsoft 365 and Office | Word | For business | Windows
{count} vote

1 answer

Sort by: Most helpful
  1. Connor Shore 186 Reputation points
    2023-09-21T20:39:02.4433333+00:00

    Hey Tom,

    I was able to figure out the source of the issue. In the document.xml there is a hyperlink with rId3 and it keeps getting repeated throughout in wrong locations. Essentially we weren't closing hyperlinks off correctly in our code and it was adding them a bunch of places they shouldn't be. This issue is now fixed and can be closed. Thank you for your help!

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.