MusicXML import error

I exported an XML file from Finale, and when I imported it into Dorico, it reported the following error over and over again.

ERROR - Element ‘measure’, attribute ‘text’: The attribute ‘text’ is not allowed.

A sample of the offending lines in the XML read:

The text attribute seems to be used for the displayed region’s measure number, which is different from the actual measure number.

Is this a shortcoming of Dorico, or an XML syntax issue from Finale, or what?

MusicXML defines the “text” attribute for “measure” tags:

And yes, the “text” attribute can be used for displayed numbers when they differ from the “real” measure numbers.

Ben, are you definitely running the latest Dorico update? Dorico 1.2 can import MusicXML 3.1 files, though it doesn’t actually import any of the new features defined in the latest version of MusicXML, but it validates against the latest schema, so you shouldn’t get that error if you’re up to date.

Hmm. Not sure - but I tried the import again and it worked without error. Thanks.

Olá pessoal! Erro grave na importação de arquivo musicxml, isso é decepcionante para um software tão ousado que é o Dorico PRO Version 4.0.31.1060 (Mar 24 2022)


ERROR - Element ‘sound’, attribute ‘dynamics’: [facet ‘minInclusive’] The value ‘-1.11’ is less than the minimum value allowed (‘0’).

At line 4477 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

ERROR - Element ‘sound’, attribute ‘dynamics’: ‘-1.11’ is not a valid value of the atomic type ‘non-negative-decimal’.

At line 4477 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

ERROR - Element ‘sound’, attribute ‘dynamics’: [facet ‘minInclusive’] The value ‘-1.11’ is less than the minimum value allowed (‘0’).

At line 7200 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

ERROR - Element ‘sound’, attribute ‘dynamics’: ‘-1.11’ is not a valid value of the atomic type ‘non-negative-decimal’.

At line 7200 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

ERROR - Element ‘sound’, attribute ‘dynamics’: [facet ‘minInclusive’] The value ‘-1.11’ is less than the minimum value allowed (‘0’).

At line 7458 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

ERROR - Element ‘sound’, attribute ‘dynamics’: ‘-1.11’ is not a valid value of the atomic type ‘non-negative-decimal’.

At line 7458 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

ERROR - Element ‘sound’, attribute ‘dynamics’: [facet ‘minInclusive’] The value ‘-1.11’ is less than the minimum value allowed (‘0’).

At line 8571 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

ERROR - Element ‘sound’, attribute ‘dynamics’: ‘-1.11’ is not a valid value of the atomic type ‘non-negative-decimal’.

At line 8571 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

ERROR - Element ‘sound’, attribute ‘dynamics’: [facet ‘minInclusive’] The value ‘-1.11’ is less than the minimum value allowed (‘0’).

At line 12902 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

ERROR - Element ‘sound’, attribute ‘dynamics’: ‘-1.11’ is not a valid value of the atomic type ‘non-negative-decimal’.

At line 12902 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

ERROR - Element ‘sound’, attribute ‘dynamics’: [facet ‘minInclusive’] The value ‘-1.11’ is less than the minimum value allowed (‘0’).

At line 13958 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

ERROR - Element ‘sound’, attribute ‘dynamics’: ‘-1.11’ is not a valid value of the atomic type ‘non-negative-decimal’.

At line 13958 of file:/C:/Users/PCP/AppData/Local/Temp/Dorico%204/2bb4-e3ab-cfeb-5b6c

Welcome.
The problem is in the XML file, as the error messages tell you.

If you read the (many) threads here about MusicXML format you will learn that many programs produce bad xml files. Dorico does a reasonably good job at ignoring these if it can.

My suggestion would be to correct the errors in the xml file using an xml parser like this one. Simply changing the negative values to zeros should work in this case.

1 Like

Obrigado por responder e me dar a solução.