Readable XML iTunes Library Not Valid

Bastian shared this problem 12 years ago
Solved

I freshly installed TuneSpan and it starts up, searching for the Library.


I get the following error message and all I can do is "Change Location" "Quit" and "Try Again":


Your main binary iTunes Library file was found:


/Users/bastian/Music/iTunes/iTunes Library.itl


And, your readable XML iTunes Library was found:


/Users/bastian/Music/iTunes/iTunes Music Library.xml


But, this file does not appear to be valid, TuneSpan did not detect a Library Persistent ID in the file. TuneSpan cannot load this file.


This file is created automatically by iTunes.


You may need to launch iTunes, play a track or get a tracks info, and then quit iTunes to have it recreate this file.


I did what was suggested and date & time of the mentioned files also changed, but still TuneSpan won't open them.


What might be the problem here and how can I solve this?

Replies (11)

photo
1

I wrote this check to be extra safe because TuneSpan needs to iTunes Persistent ID to create a database for the library, but I didn't really think any users would encounter this issue. So, thank you so much for getting in touch about this.


If possible, I would like to take a look at your XML library file myself to see exactly what iTunes is doing. Would you mind sending the file to me at pico (at) randomapplications.com ? If you send it my way I should be able to see the difference in your file. Since it is created by iTunes, I will need to take a look at the file before I can really consider or suggest a solution.


So sorry for this hassle.

photo
1

Hi Pico,


you've got mail :)

photo
1

I updated iTunes to 10.5.3 and hoped that this might solve the issue but it didn't :(


So I fear I still need your help.


Cheers,


Bastian

photo
1

Hi Pico,


today I updated my iTunes to 10.6.1 and TuneSpan is starting up correctly. I haven't yet tried to span something but it seems that everything is doing okay.


Just wanted to let you know that you can stop investigating on that issue.


Cheers,


Bastian

photo
1

That is great to hear. I found that the issue had something to do with the encoding of your .xml file. It was a mixed encoding and the standard method that I was using to load an XML file into a dictionary data structure just couldn't read it. So there was nothing I could do. I wanted to dig a little deeper before getting back to you with bad news, so I am very happy to hear that iTunes 10.6.1 resolved the encoding issue and allows TuneSpan to load the file.


Thanks so much for getting back to me about this!

photo
1

Bastian reports that iTunes 10.6.1 resolves this issue and creates a readable XML iTunes Library file.

photo
1

Hi,


I have the same problem as described by Bastian but I already use iTunes 10.6.1. So the solution won't work for me...


Any suggestions what I can do?


Thanx. Sabine

photo
1

Please email me directly at pico (at) randomapplications.com


If you send me your "iTunes Library.xml" (or "iTunes Music Library.xml") file, I can take a look at it and try to figure out what's going on with it.


Thanks.

photo
1

Done. ;-)

photo
1

I have submitted an update to TuneSpan to solve this issue. I have added code to load libraries that are encoded in a format other than the standard UTF-8.


Sabine has tested this on his library, and confirmed and the solution works.


I will come back and mark this as Solved when the update is released.

photo
1

TuneSpan 1.0.2 has been officially released on the Mac App Store which fixes this issue and is able to load XML iTunes Library files that are not encoded in the standard UTF-8 format.


http://mas.tunespan.com

Leave a Comment
 
Attach a file