I don't know how to repair document with this error Read-Error. Format error discovered in the file in sub-document content.xml at 2,3324(row,col).

asked 2019-01-22 09:59:13 +0200

mtc gravatar image

updated 2019-01-22 10:50:28 +0200

I found some suggestions how to repair it here but I am not sure what should be changed inside the code. this is an libre office document which had some editing done in ms word and i continued working on it in my libre office. after crashing now unable to open the file and this error appears Read-Error. Format error discovered in the file in sub-document content.xml at 2,3324(row,col). I have uploaded the document here https://www.mediafire.com/file/nygh5l... I imagine the error is in the comment from the editor which were made in word . i have worked on this successfully for few days and have been saving regularly the file, but don't have a backup unfortunately. this is an article I have been working on for some time and almost done with editing at which point this happens. I would appreciate help with this. Thank you!

edit retag flag offensive close merge delete


I assume you don't have a backup; so upload the document on a file sharing service such as Mediafire and post the link here - edit your question. Someone will try and help you.

robleyd gravatar imagerobleyd ( 2019-01-22 10:43:59 +0200 )edit

Thanks robleyd, i have now added link to the doc. much appreciate the help.

mtc gravatar imagemtc ( 2019-01-22 10:51:00 +0200 )edit

Mike, Thank you soooo much! You made my day! Thank you! What did you change in there?

mtc gravatar imagemtc ( 2019-01-22 11:12:36 +0200 )edit

There was a duplicate name attribute, which I had to remove.

Mike Kaganski gravatar imageMike Kaganski ( 2019-01-22 11:15:09 +0200 )edit

how do i find it if it happens again? would you be so kind to send me instructions?

mtc gravatar imagemtc ( 2019-01-23 11:19:43 +0200 )edit

Basically I open the document as ZIP, then open the .XML reported in the error message, check it for XML syntax errors, and (given my knowledge of how LO works, since I'm a LO developer) think how to fix that. In case of duplicate attributes that have absolutely same values, it's simply remove all but one duplicating attribute; but in your case, the values of the two duplicates were different, so I had to look around a bit.

It's better that you find the cause of such corruption (which actions/input data/etc give that), and file proper bug report if you encounter it again (but then, you need to use a fresh version, since the problem might be already fixed in a later version).

Mike Kaganski gravatar imageMike Kaganski ( 2019-01-23 12:00:58 +0200 )edit

Mike, I have again this problem. I receive this error message: Read Error. Format error discovered in the file in sub-document content.xml at 2,3415(row,col). is there a way to repair it? I think maybe the fact that the document was edited in microsoft office and then saved, might generated this issue. i am not sure how to work on this so the is not repeating the same problem each time i save and close my edits. are you able to advise? Would you be able to recover the file if i sent it to you? what happens is that I make changes, save the document and close it. when i want to open it again the error message appears.

mtc gravatar imagemtc ( 2019-03-12 10:14:54 +0200 )edit

I can try to fix it (you didn't mention if that's all error message you get, so I don't know if that's the same problem).

Regarding what to do - well, you should make sure the problem appears on latest versions of LO; and then try to reproduce which edits result in the problem appearing. If you succeed, you should file a bug report, attaching the document before the problem, and describing the detailed steps how to edit it, save, and get the problem. That would enable to reproduce - and finally fix that.

Mike Kaganski gravatar imageMike Kaganski ( 2019-03-12 10:28:24 +0200 )edit

This is the only error message i receive. I am working on the LO 6.2 but I think the problem occured on the earlier version LO4. I know exactly which edit i was working on just now. I could retrace the steps. but if you are able to repair the document I was working on that would be an amazing help. also, what to do now? do you think if i copied and pasted the text into a new docuement would be a fix for now? Here a link to the file http://www.mediafire.com/file/162b656...

mtc gravatar imagemtc ( 2019-03-12 10:35:59 +0200 )edit