My file is corrupt and I can't fix it

• Mar 1, 2023 - 06:38

I tried googling a bunch but I don't know what to fix.

This is the error message it gives me:
Error=XML_ERROR_EMPTY_DOCUMENT ErrorID=13 (0xd) Line number=0

Attachment Size
Holst Medly.mscz 35.89 KB

Comments

In reply to by elsewhere

The zip is corrupted (end damaged)

$:~/downloads$ unzip HolsMedly.zip
Archive: HolsMedly.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of HolsMedly.zip or
HolsMedly.zip.zip, and cannot find HolsMedly.zip.ZIP, period.

Attempting to repair zip:

$:~/downloads$ zip -FF HolsMedly.zip --out NewHolst.zip
Fix archive (-FF) - salvage what can
zip warning: Missing end (EOCDR) signature - either this archive
is not readable or the end is damaged
Is this a single-disk archive? (y/n): y
Assuming single-disk archive
Scanning for entries...
copying: score_style.mss (9987 bytes)
copying: Holst Medly.mscx (4113 bytes)
copying: Thumbnails/thumbnail.png (21702 bytes)
copying: audiosettings.json (336 bytes)
copying: viewsettings.json (45 bytes)
copying: META-INF/container.xml (158 bytes)
Central Directory found...

No guarantees about completeness

Attachment Size
NewHolst.mscz 36.17 KB

In reply to by c7qmhd5sps

This file contains only garbage. It does not look like a zipped file at all. mscz files are zipped files.

Opened with an editor, you will see the following:
ScreenShot_The Seven Kingdom Battle's Lost-Piano.mscz - Notepad++.png
Typical would be this type (from another mscz file), the first two characters 'PK' (and a few more) indicate zipping:
ScreenShot_stone2test.mscz - Notepad++.png
I am sorry, your file is completely damaged and cannot be repaired. At least it is no file which was saved by MuseScore ...

In reply to by prestontru08

You did attach a file with the extension .mscz which is basically a zip archive/file. It should contain an .mscx file - the MuseSore music - and other files relating to style etc. Your .mscz file is incomplete and either does not contain an .mscx file or the code is disrupted and the .mscx file cannot be found and read.

In reply to by underquark

That's really unfortunate, but thanks for trying to help. I checked my musescore backups, which contains the file as an MSCZ~ File. I can't seem to open it with anything, and I can't even share it as an attachment. This is similar for all the backups Musescore 4 makes for me by the way. Is there anything I'd be able to retrieve from that file?

Me too, I have two, i hv read and all but still am confused, tried but dk what to do with the error details which i have copied.

error messages:

waltz in f#minor: Error=XML_ERROR_EMPTY_DOCUMENT ErrorID=13 (0xd) Line number=0

revolutionary song : Error=XML_ERROR_EMPTY_DOCUMENT ErrorID=13 (0xd) Line number=0

Attachment Size
Waltz in F# minor.mscz 56.94 KB
Revolutionary Song.mscz 56.41 KB

Buenas noches, lamentablemente tengo el mismo problema, espero en verdad puedan brindarme una solución, adjuntaré el archivo y el código de error emergente al intentar abrirlo.
De antemano, muchas gracias.
"Error=XML_ERROR_EMPTY_DOCUMENT ErrorID=13 (0xd) Line number=0"

Attachment Size
Menuetto No.3.mscz 34.96 KB

Good evening, unfortunately I have the same problem, I really hope you can provide me with a solution, I will attach the file and the error code that pops up when trying to open it.
Beforehand thank you very much.
"Error=XML_ERROR_EMPTY_DOCUMENT ErrorID=13 (0xd) Line number=0"

Attachment Size
Menuetto No.3.mscz 34.96 KB

In reply to by axasof68

I am sorry, no help is possible. Your file consists only of zeros, without any useful content.
For example, try to find a backup copy in the hidden folder .mscbackup.

In reply to by Jojo-Schmitz

Thank you for reply! But it is only part of this composition, that i already have. I've tried to search the full (last saved) version of this project in backups, but it was unsuccesfully. The date of creation tells me, that file, that i've attached it can be last saved version of this project, that i need, but it's corrupted

In reply to by vindependent

Try opening it in a file editor to see if it is just zeros. If it contains actual data then it might be recoverable but if it is just zeros then there is nothing useful in it.

Read the posts above for things that other people have tried.

Why does it happen? I don't know; it never seems to happen to me using ubuntu on a desktop PC. I'm sure the program developers would fix it if they knew what the problem is. There seem to be a lot of posts related to it but I suspect it is a small number in comparison to the total number of files saved worldwide.

In reply to by vindependent

Hey, you "bumped" your question just half an hour after asking again so, no, I just saw it now. Be aware that no one on this forum is a support person, just ordinary users. It's just luck, recent long-distance travel and generally poor sleep hygiene that had me answering your first post.

In reply to by Rentta

This file apparently contains an old version 4 as *.mscx.
If you open the *.mscz with a zip tool, you can extract the mscx. I did that, opened it with 3.x and saved it again.

> Nope. Look at the length of it - suspiciously small for a MuseScore file.
Probably not, see my attachment. After all, 78 measures of piano music ...

Edit: the problem seems to be caused by a missing thumbnails folder in the *.mscz.

In reply to by underquark

I have done a few more steps than you. :-)
Step 1: I try to open the file with MuS 3.7, if that doesn't work: Step 2. If it does: save and reopen in 3.7.
Step 2: I then try to open it with a zip tool, if it works: step 3, if it doesn't work: step 4
Step 3: I try to open the mscx with MuseScore. If that does not work: I open the mscx with Notepad++ to check if there are some gross irregularities, e.g. only the header and nothing else. Fine details are difficult to find here.
Step 4: I open it with notepad++ to see if it's a file with several kilobytes of zeros, which happens from time to time, or other irregularities that show me that it's not a zipped file, for example. See e.g. my post here in https://musescore.org/en/node/345871 from Mar 16, 2024 - 08:17

When we reach step 4, the file could not be recovered in almost all cases.

In reply to by underquark

> Step 4 - i actually sometimes do this first
Yes, sometimes I do too. It depends on the type of error message - or what I initially suspect to be the cause.

What has also happened: another zip tool could open the file, but my 7-zip could not. There is no single, all-encompassing solution for faulty files.

Do you still have an unanswered question? Please log in first to post your question.