0

We have an office online server build 16.0.8471.8525 (latest and greatest) which we use for displaying and editing word documents through WOPI. When editing a document which has a pretty header and footer representing a formal law document, it gets corrupted. It can be used for editing with no problem with our office server but viewing in it as well as in desktop word is not possible, even desktop word can not repair it.

Editing the same doc in office 365 online or desktop word does not corrupt the file.

Making the same change to the document with our office online server, office 365 online and desktop word produces 3 completely different files in therms of internal xml representation (viewing with Open XML SDK 2.5 for Microsoft Office) and its not trivial to figure out why is the file broken.

I'm struggling to find the correct approach for solving the problem

pacitu
  • 101
  • 1
  • 4

1 Answers1

0

We recently upgraded to office online server version 16.0.8471.8525 and started seeing corrupted documents, too. As we still have the old version running in our production environment, we were able to experiment and compare a little: All corrupted documents have in common that they contain some sort of drawing element (for example a very simple rectangle with a color). In the original document this drawing element has its PercentageWidth and PercentageHeight specified as <wp14:pctWidth>0</wp14:pctWidth> and <wp14:pctHeight>0</wp14:pctHeight> respectively. After editing, the document (now corrupt) contains <wp14:pctWidth /> and <wp14:pctHeight />. So empty values. When setting the value (0) back on these elements, the document can be opened again, but when you try to edit it in OOS, it will get corrupted again :(.

I think this is a bug in Office Online Server, but I hope above details can help you to get a bit further.