Music xml import error message

Tried importing a Finale xml into Dorico 6 pro and got this error message:

ERROR - Element ‘midi-channel’: [facet ‘maxInclusive’] The value ‘32’ is greater than the maximum value allowed (‘16’). At line 17142 of file:/C:/Users/Chuck/AppData/Local/Temp/Dorico%206/05b2-073d-c622-219f ERROR - Element ‘midi-channel’: ‘32’ is not a valid value of the atomic type ‘midi-16’. At line 17142 of file:/C:/Users/Chuck/AppData/Local/Temp/Dorico%206/05b2-073d-c622-219f

any way to fix this?

Chuck,
what happens if you try to open the (Finale generated) music.xml file in an advanced text (or XML) editor, go to the mentioned line (17142), change the “32” to a value of “16”, then save the file and try an import to Dorico again?

1 Like

I installed Document ++ notepad and gave your suggestion a try. There was no line 17142 but I did change a 32 to 16, but the saved file would not open in Dorico. I have no experience with editing lines of code but thanks for the suggestion.

If you have MuseScore, you could try importing the Finale xml file into that and see if you have any luck there. If MuseScore does manage to import it, export it from there and then try importing that xml file into Dorico.
This is probably the only thing which I use MuseScore for, as it seems to have reasonably good luck with handling/ignoring musicxml “quirks”. As has been mentioned many times in this forum, musicxml is still evolving and the various music apps which can import and/or export such files often take different approaches in how they encode and decode the information.

1 Like

Which is curious, since that was stated in the original error message.
Could you post the xml so someone can help? (you may need to zip it first)

1 Like

Someday We’ll All Be Free Gb V2.mxl (105.2 KB) Here is the xml file from Finale

and here is the Dorico error message:

ERROR - Element ‘midi-channel’: [facet ‘maxInclusive’] The value ‘32’ is greater than the maximum value allowed (‘16’).

At line 17118 of file:/C:/Users/Chuck/AppData/Local/Temp/Dorico%206/0852-190d-c29c-8ed6

ERROR - Element ‘midi-channel’: ‘32’ is not a valid value of the atomic type ‘midi-16’.

At line 17118 of file:/C:/Users/Chuck/AppData/Local/Temp/Dorico%206/0852-190d-c29c-8ed6

any help appreciated

Ah! It is a compressed xml file (mxl, not xml) which cannot be read by a text editor.

Thanks I will export an uncompressed xml from Finale

screenshot of my Finale export settings

Both compressed and uncompressed [Upload failed]have the same amount of data.

Someday We’ll All Be Free Gb V2 uncompressed.mxl (105.3 KB)

Someday We’ll All Be Free Gb V2 compressed.mxl (105.2 KB)

Both those files are still compressed (they have the mxl extension)

I’m no expert on Finale or how it exports this stuff.

1 Like

I will keep digging and let you know if I find anything out.

I took your compressed file and changed the fileextension from .mxl to .zip

Someday We’ll All Be Free Gb V2 compressed.mxl (105.2 KB)

That way I could decompress it:

Someday We’ll All Be Free Gb V2.musicxml (2.9 MB)

Now, I don’t have a text editor here on my phone, but I guess one should be able to open it now.

Thank you!

When you attempted to get Dorico to open the original musicxml file, as well as presenting the error message did it give the option to continue trying to load the file anyhow (ie ignoring the error message)? This might be as simple as an OK button. Or, did it totally refuse to load? In that case, follow @Janus’s suggestions. If it is possible to continue loading the file and it opens, use Save as… a few times to save the Dorico project with different file names so that you have a few copies of something that will actually open - if anything really bad happens, you have these to fall back on. When I have thorny problems like this, I try to always work on a copy, not on the original. Then look through the Dorico file and try to locate where the error(s) might be, such as odd-looking notation, incomplete bars, mangled tuplets, etc. Edit any such “finds”, save the file again and keep working.

I loaded a text editor Subtext onto my phone and opened the file.
Here you can see the offending line:

I changed the value from “32” to “16” and resaved the file under new name:

Someday We’ll All Be Free Gb V3.musicxml.xml (2.9 MB)

… and this file imported without hiccups into the Dorico 6 application:

Someday We’ll All Be Free Gb V3.dorico (3.5 MB)

1 Like

Yes your dorico file opens no problem and thanks for the xml file for reference.

1 Like