We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

how to get the exact reason why a file is being told as corrupted when opened ? [closed]

asked 2014-11-18 13:18:48 +0200

Tama gravatar image

updated 2016-03-06 13:13:37 +0200

Alex Kemp gravatar image

For reports, we generate odt files from (many) templates from an oracle database. All those outputs are perfectly compatible with OpenOffice 2.4.

We are trying to make our reports compliant with LibreOffice 4.2+. Most are working fine, but some are deemed "corrupted", with Writer proposing to repair them. And they seem to work fine after repair.

Is there some kind of verbose/debug way of opening those odt documents in writer ? So that we could see the underlying reason (in the content.xml or else) why it says that they are corrupted. This way we could correct our report generators.

Thanks in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-03-06 13:14:10.531446


In what way (words) exactly is the "corruption" inicated?

You did already check the wrapped-in XML files with a syntax sensitive editor for conspicious symptoms? We had some "error on loading" topics here that got fixed this way.

PS If you find an XSD file usable for syntactical verification of content.xml, please tell me.

Lupp gravatar imageLupp ( 2014-11-18 13:45:20 +0200 )edit

The wording is :

The file '14A821_9.odt' is corrupt and therefore cannot be opened. LibreOffice can try to repair the file.

The corruption could be the result of document manipulation or of structural document damage due to data transmission.

We recommend that you do not trust the content of the repaired document.
Execution of macros is disabled for this document.

Should LibreOffice repair the file?
Tama gravatar imageTama ( 2014-11-19 14:19:22 +0200 )edit

I did check my xml files with Jing against the published NG for ODF 1.0 As described here : https://wiki.oasis-open.org/office/Ho...

they are ODF1 compliant, And it does not bother LOO4.3 to open some of them as such without any issues. Only a few are "corrupted".

Tama gravatar imageTama ( 2014-11-19 14:22:58 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-11-18 14:45:39 +0200

Lupp gravatar image

updated 2014-11-18 14:53:53 +0200

OOo 2.4.1 was released 2008-06-10. This was when ODF V1.1 specifications. 1st release, were in force. Might your "corrupted" templates also be created relying on OOo V2.4.1?

There was a rectified release of ODF V1.1 on 2013-07-22. There might be a source of errors in the original release of ODF 1.1.

LibO is relying on ODF specifications V1.2 and LibO V4.x may assume older documents based on ODF 1.1 rectified release.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-11-18 13:18:48 +0200

Seen: 1,452 times

Last updated: Nov 18 '14