Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

iTunes Music Library.xml won't update, can't export new library.xml

the title basically says it all... my iTunes Music Library.xml inside my itunes folder is dated last modified 9/16/09 at a 6:53PM... I've opened itunes and have added new music to my library BUT the iTunes Music Library.xml doesn't update (therefore my DJ program, Serato Scratch Live, doesn't show the newly added songs as well as new changes in my iTunes playlists).

I've upgraded my itunes from 8 to 9, i've upgraded my serato scratch live from 1.9.0 to 1.9.1, the latest.

I've moving my iTunes Music Library.xml to another location, relaunching iTunes, going to File, Library, Export Library to create a new xml at any location but it does not appear when i create it.

I've redownloaded itunes 9 but same thing unfortunately. Any suggestions?

MBP 15", Mac OS X (10.5.8)

Posted on Sep 19, 2009 5:11 PM

Reply
Question marked as Best reply

Posted on Sep 19, 2009 5:16 PM

My first guess is the iTunes folder your iTunes is using is different than the one you are looking at.
Is the new music you added in the iTunes music folder in this iTunes folder?
40 replies

Jul 7, 2011 7:22 AM in response to Arseniy Ivanov

Many thanks for your help with this problem... I was desperately trying to get my Sycopation Music Sync Software working and it would not work as my iTunes Music Library file was not being updated... After reading your message I looked and found some chinese symbols in the title of some of my songs and after removing them bingo it worked.. Thanks again for your help with this issue.... Mike

Aug 15, 2011 8:57 PM in response to simon289

Ok, here is the full answer that I posted in a few other forums where people were having the same issue. I hope this helps some folks!!!


Summary:

The iTunes XML exporter is crashing due to funky characters is some of the fields of some of the songs in your library. You will need to fix the problematic fields in the songs in your library and this will fix the problem.


1) Your ITL file is not exporting properly


When iTunes is running it uses the ITL (ITunesLibrary) file. This is a binary file in a proprietary Apple format. When you exit iTunes, it tries to export your library to the XML file in the same directory (both files are in the iTunes/Media folder). If at some point you added a song with a funky character (non-latin characterset) in one of the fields (not necessarily the name of the file, but in the information fields), when the XML exporter tries to process the file, it crashes, thereby not updating the XML file.


The reason the XML file exists is so that other software can load the iTunes library; the ITL format is proprietary and has not be released publicly. DJ software, like Virtual DJ (or any other software that reads the XML for that matter), will read the information from the XML file. Even if you delete your entire library, if the XML exporter is crashing the DJ software will still load the old XML file (and therefore behave as though you still have you old library).


If you look at the dates of the two files, they should be the same. If they are not, or if you do not have an XML file, this problem is happening to you. Note that the ITL file is binary, and so it will be smaller, whereas the XML file is Unicode text and it will be much larger. To give you an idea, I have 16,000 songs in my library and the ITL is 6.5Mb; the XML is 26Mb.


Because your export likely worked in the past (before you added the problematic song in question), you still have a legacy XML file from some past operations.


2) What you need to do to find the song


I got this fix from the apple support community:


https://discussions.apple.com/thread/2168081?start=0&tstart=0


Thank you to Arseniy Ivanov for figuring this out!


Here is his suggestion:

-------

Okay, it seems I have figured out something here.

XML creation crashes on some of the characters that it's unable to convert to XML-entities correctly.

In my case, it was this particular sequence in the Composer field, which made it crash.


54 43 4F 4D 00 00 00 15 00 00 01 FF FE 9E DA


So just check whether any of your files contain some kind of weird characters.

The following method might be helpful:


1. Create new smart playlist with a rule "Playlist is Music"

2. Set limit to approx half your library size, ordered by Artist

3. Try to export in XML the playlist via File -> Library -> Export playlist

4. If the file has been created, delete it, increase the limit by some amount; if the export has failed, decrease limit by some amount.

5. After several tries you will find a limit number, after which the creation fails. Go down to the end of this playlist and check the info of the file.


It also might happen that several files contain those nasty characters, so you will have to clean them all up.

-------


The only suggestion I would add is a little further down the post. Take a look at the date that your XML file stopped updating. This is likely when you added the song in question. I made a smart playlist that added the most recent additions and it helped me find the file in question. You can be creative here. For me, I had a bunch of non-printable and non-latin characters in a variety of fields. When you get to a bunch of files that don't work, browse through the information view of the songs and look for the funny stuff. It does work!!


3) How you will know that it works


When you think you have fixed the problem, exit iTunes. If the XML file last modified date is the same as the ITL file - it worked!!


Good luck!

Aug 28, 2011 1:39 PM in response to pcorrect

pcorrect, your post lead me to a solution as well, thanks. I tried Arseniy's troubleshooting steps for resizing and exporting the smart playlist, but I was able to export the playlist file successfully even when the max number of tracks setting was above my total track listing, so my issue had to be caused by something else. I use TuneUp & Serato Scratch Live, and I also have the ZumoCast desktop client installed. ZumoCast was an iTunes Library Streaming app for iPhone, I think it was same company as Zumodrive. I haven't used ZumoCast in a while, but once I read pcorrect's post, I closed ZumoCast from my taskbar and then closed iTunes. My xml file updated immediately.


I found & downloaded the ZumoCast iPhone app in the App Store a few months ago, then I downloaded & installed the desktop client to go along with it. Apparently ZumoCast was bought by Motorola since that time. According to their desktop client's download page, unfortunately they no longer support iOS. http://www.zumocast.com/download says, "Existing ZumoCast iOS users: The latest ZumoCast desktop client does not work with your iOS ZumoCast application at this time. Please continue to check back for updates." If you have ZumoCast running in the background on your PC, either delete it, or right click on it, go into settings, disable it from running on startup, and then exit out of it.


Windows 7

Aug 30, 2011 12:57 AM in response to juniortai

The times I ran across issues with iTunes creating the iTunes Music Library.xml file, I always found that the culprits were bad characters in the track id info of a couple of song. The easiest fix which worked for me was to select everything in the iTunes Library and use the "Translate text characters" feature of the "Convert ID3 Tags" contextual menu. The translation feature seems to clean up any bad/illegal characters which cause issues when iTunes tries to generate the iTunes Music Library.xml file.


Cheers,

JP

Jan 20, 2012 3:10 PM in response to juniortai

There are many good answers here but complicated for some people.


A simple way is to spot the last file wich your 3rd party software was reading. So for instance I use Traktor and the lasst file read was over decemner the 6th 2011. So I went ahead and removed that very file and "voila" problem solved.


Bottom line, stick to genuine (purchased or ripped from CD's of your own) music and you won't have issues. All this issues come from crappy downloads and shared files. Then again this is my way...


Message was edited by: josehita

Feb 11, 2012 3:25 AM in response to juniortai

Hi All,


I have found quite a simple soutuion to this problem ...


I use both Serato and Traktor and since last week my iTunes library wouldn't update. So after reading Simon289's post, I tried another way (which worked). I happened to try it on Traktor but I'm 99.9% this will work on any DVS (digital vinyl solution).


  • I opened Traktor Scratch and loaded my iTunes library.
  • I then looked at the most recent track in the iTunes library within Traktor (make a note of this).
  • I then went to iTunes and deleted the track immediately after last one that was in iTunes library in Traktor (if that makes sense?).
  • Quit iTunes and then reopen again.
  • Go to Traktor and right click on the iTunes logo, click refresh.
  • You should now see your most recent tracks appearing in your DVS of choice.
  • Go smash out some tunes 🙂


The track that was causing the problem had a funny little question mark in a diamond shaped box within the artist field.


I hope this helps. Give me a shout if you need any help.


Cheers, Shaun.

Apr 12, 2012 9:00 AM in response to sbartle

Hi everyone i read this hole forum, it seems everyone has discovered there own little way to solve it, some are fairly distructive such as deleting and starting again, well i happen to find a way which is just a few clicks. again not sure if it will help everyone but i use traktor and it done the job.


how it came about for me is i changed the name of the root file (music 04/2012) for where the music is saved on my mac in finder. this is where itunes is rooted to and also where traktor explorer is rooted to but traktor is also rooted via both i tunes then itunes to finder. so me changing the name in finder and then relising the consiquences left me in a hole to why after i changed the name back, why could i only view my music in traktor by the explorer not via the itune root. so researchng it lead me here... and as the ways to resolve these probems seem pretty extreme and time consuming i had a lil **** out with it....and its simple >> i tunes >> file >> library >> organize library >> consolidate files... simple as that ... i think please inform me if there is a reason why this is not a perminent or ideal way for resolving this

Jun 25, 2012 11:17 PM in response to juniortai

😮 Too bad 'juniortai' never responded back about what happened? I know I wrote a lot of info, but it may help? Once I started typing I couldn't stop. Sorry In Advance For The length! LOL


I'm just an average Mac consumer and a local DJ. I felt compelled to add my own 2 cents here, along with many others regarding this discussion relating to .XML files, iTunes, other Apps that use iTunes information, DJ Software, importing and exporting Libraries, ETC. It's amazing how one question can lead to many other questions or relate to an issue that one may have. I've also learned that there is more than one way to achieve the same results. I apologize if this seems like a blog, but its not. I just thought maybe if I write some information that I found useful from my own experiences here, that maybe it could help another.


I'm pretty simple, I have 2 Mac Computers, a late 2008 MacBook 13" (aluminum unibody) with Processor 2.4GHz Intel Core 2 Duo and 2GB 1067 MHz DDR3 Memory and a Late 2008 iMac 20" with Processor 2.66GHz Intel Core 2 Duo with Memory 2GB 800 MHz DDR2 SDRAM, both were purchased in Feb 2009. I currently use Mac OS X 10.6.8 Snow Leopard and I'm going through the process of verifying, repairing, cloning or copying my files along with other steps I may need to do for all my apps, 3rd party apps, disks and files before I upgrade to Mac OS X Lion. I was looking for discussions regarding ".XML" files to see if I really needed them, but now I see that if I delete the ".XML" file it won't hurt my actual media files. I understand how they operate with other apps, etc. However, in reading this discussion I realized this discussion kept piling on more and more information that was also connected to previous questions and troubleshooting issues I had in the past regarding my DJ Software. Some of which I managed to find answers to. Everything everyone has added is thought provoking and necessary. Thanks.

Since, I'm a DJ, I utilize iTunes with almost 25k worth of files. Tons of which are duplicates, triplicates or even garbled texts and languages in their titles and descriptions making it difficult to utilize at times, however, through a lot of patience, reading, and much input from Apple Communities, I now understand how to manage my libraries a little better. I can see how having a problem with iTunes and questions on what to do about troubleshooting can be very scary. Although, I've never actually asked a question, I've realized the key is understanding which words to type when searching discussions to maximize results for answers.

I've come across similar issues and questions pertaining to the various issues and responses outlined in the midst of this entire 3 year discussion. I've also wondered about ".xml" files, which to use, which to delete, what programs use them, why do they even exist? AND Even though this discussion isn't marked as an answered question, I do believe there are numerous answers in here pertaining to the many different ways to ask the same question: Why iTunes Music Library.xml doesn't update? Among others, this XML question seems to affect DJ's the most who use DJ Software via iTunes and/or Music Library?

While iTunes is opened in the background, as you add a file into iTunes, you should simply be able to use the added song, even on the fly, while in a DJ session using DJ Apps and Software in the front. From what I've learned Serato is an advanced DJ Software system, notably one of the best and quite expensive. So, I understand how Serato users may be frustrated when the system doesn't work correctly.

I've been a DJ for over 15 years and most of what I've learned has been from trial and error, to say the least. I come from an older generation of DJ's who still utilizes the Analog style of DJ'ing i.e. 2 turntables or Dual CD systems connected to Mixers, EQ's, Compressors, Crossovers, Amps, Speakers, and other sound equipment. It's only been in the last 3-4 years that I've switched to a Digital DJ System but I still utilize all my sound equipment for maximum performance along with my iMac. The DJ Software I use is Virtual DJ Pro for Music and Video Mixing along with the modest Numark iDJ3. Its simple, easy and cost effective for my needs. I also use MixMeister Fusion on occasion (rarely because it can be buggy with Mac OS X) for pre-recording and mixing songs that need adjusting down to the most specific wave. It works well if you aren't running too many apps in the background, otherwise it could quit unexpectedly. The problem with MixMeister is they don't seem to keep up with their updates as fast as Mac does causing some compatibility issues. This can be very frustrating for the DJ who doesn't understand how to configure their Mac. You can get Virtual DJ Home edition Free online from their website. Its safe to use or I wouldn't post that. After downloading and trying it out, you can purchase or upgrade Virtual DJ like others, or keep the basic version, depending on the level you desire, so on and so forth. I like Virtual DJ, it seems to be very compatible with my iMac. Plus I have monthly, unlimited access to any song in the world that I may need on the fly. The best part is Virtual DJ helps me keep an eye on my CPU usage. This is great since some apps can overload or cause the internal temperature too get to high making apps quit unexpectedly, too. Virtual DJ has an iPhone App and iPad App to use remotely. Its totally awesome! I digress!

Most DJ Software requires you to use specific formats when playing media i.e. MP3 or MP4, etc, when you download a song from a cd or from the Internet it may download based on the default settings from their sites or that are set in iTunes Preferences. If you have a song that's not MP3, iTunes can convert a new file format for you. I say MP3 as an example because most DJ software utilizes MP3. Sure, the quality may be not as good as others, like AAC but it is easier. This is all based on preferences.


Also Use iTunes Help > iTunes Overview > Import Music, Videos, and More > Ways To Import > Import Songs From CDs > Choose Import Settings.

Playlists are used by iTunes and other Mac Apps or DJ Software. To learn more about Playlist, Saving them to other computers or devices, and How XML is used for importing and exporting playlists to and from libraries:


Go to iTunes Help > Organize Your iTunes Library > Create Playlists > Save a Copy Of Your Playlists

Click either show or hide > Here are ways to save copies of playlists or use playlist on another computer

Or Click either show or hide > Here are ways to transfer song information into an applications


Now, getting to the Garbled Texts in Titles of songs: Some Software requires certain codes that make songs compatible with the software your using when DJ'ing a session. Also, in Safari Preferences you might consider changing the Default Encoding to Unicode (UTF-8). This may help when downloading stuff from the internet to minimize garbled codes and weird text you may see in iTunes or other Apps that are Foreign i.e. Japanese or Chinese symbols and text. Just saying it may reduce some of the mumbo jumbo. Believe it are not I feel this is all related, I don't speak computer but this is stuff I've come across and it may help?


However if a song title doesn't appear the way it should with weird symbols and such, this can affect ".XML" files from working properly in another program. Again XML are files that store information about a song (not containing the actual song) and relays that info to other program, software or apps needing to access that information about a song. The information its interpreting contains basic info as well as the extra stuff we, DJs may add into certain fields like description, play count, play list, ratings, BPM, title, etc etc, XMLs can also help keep songs organized or help command functions within whatever program we need to use the song for. If another APP from the Internet stores the information of a song in a different format than iTunes or our Music Library, then it can create a problem with using that song in other Apps like whatever DJ Software you use. BEEN THERE, DONE THAT. So, as a DJ, I found that I may have to keep duplicates, even triplicates of certain songs, because different programs may need one format versus another format and that's ok. Another way to resolve format issues may to convert the song's information tags AKA (ID3 tags). Yeah? There's More:


Go to iTunes Help > Organize Your iTunes Library > Add and Edit Information > If Song Titles Don't Appear Correctly > Click Show or Hide > To Change The Format of The Song Information Tags:

Or Click Show or Hide > If a Song Title Looks Scrambled After Converting information Tags:


Also, you can add songs under your User in Music Library (which is the actual main library on your computer under your user name) without adding the song to the iTunes folder (keep in mind iTunes {Home/Music} is not the main original file location of a song, its just an app like any other apps that can pull your music from the main library). The iTunes library can be re-populated or completely deleted as long as you have original files under the music folder in your user library you van add them back to iTunes. Under iTunes Help, type in the search bar > Add items to your library without copying them to your iTunes folder. You can also Import music already on your computer into iTunes so that it appears there and you can add a file as an alias without creating a copy.


I just update iTunes, so this may not matter anymore, but I would like add my thoughts regarding Cannot Find Location of a file or Song in iTunes that someone previously mentioned:


If the original file has been moved or relocated, it may cause an issue in iTunes. It might say something like, can't find the location of the song. Then it may ask you to locate it? If you are identifying duplicates, one may be completely there while another is just a title and can't be found, but its difficult to tell which song is there and which song can't be located until you click on it or try to get info (Command > I). if you have more than 10k songs, this can be a long and painful process.


A shortcut I found was to click on:

open iTunes.app > iTunes Library > Highlight All Music by Selecting All Songs (Command > A)

Then > Get Info (Command > I ) - like your going to add something in a for all songs highlighted in a field, but you don't > Then exit out of Get Info, after which all the songs will run through (may take minutes depending on the amount of files you have).


The songs that can not find a location will show a little (puffy exclamation point ! like) icon to the left of the song. You can either delete them because they won't play without locate path to the file in your music library. Its easy to delete if there's only a few of them like that and if they have a duplicate title. Click on view options or the name by alphabetical order and see the duplicate name with the icon. Delete all the one's one with the icon. Otherwise, you can go one by one to find the location of each.


Bear with me here - When a window pops up: Do the same location for all? Click No or Cancel because every time it performs the task of locating a missing file, it will continue to go to that same file over and over again, as when it first popped up to ask. Lets say your trying to locate Twinkle Little Star? The music library pops open, at which point you'll find Twinkle Little Star.MP3 or what ever format its in and select it. Thereby, attaching the song in the music library you picked from to the title of the same name in iTunes solving that files location problem. Then before, during or after a pop up window may ask you something like Do you want to locate all files this way? Misleading you to think it will take you to exactly where the song is located in the music library of your hard drive, every time there's a location problem with a song. Nope! Not every time, it's hit or miss, you may think? However, If it could do that in the first place "Locate The Same Way", then why would it pop up that it cannot locate file or ask you if you want to locate the file from the get go? HMMM? Confusing? So when it asks to locate a file its really asking you permission to place the title in question into a search box per se, leading you to your music library. Which must happen in order to find it. You must remember : When the pop up ask you to locate all files this way, click No or Cancel, otherwise when it's time to find a different file like Moonlight Sonata, instead of opening up your music library to find Moonlight Sonata.MP3 yourself, it will take you back to Twinkle Little Star.MP3. Get It? I'm trying to be as generic has I can, layman's phonics, I guess?


Meanwhile, iTunes runs you through finding each songs location in your original music library when its missing or you've moved some files around in your music library.This occasionally happens on accident with DJ's, those who have huge libraries, or folks who don't understand how to move files around or what the XML files represent and what the consequences are if we do or don't delete them, like my self in the past. LOL. All this is related somehow. I'm not 100% sure how, all I know is it does and Apple has provided awesome tools like Communities to discuss. If you find that there are way too many questions and not enough answers for .xml, .it, .itdb, or files that are missing locations, you can back-up, erase, and re-populate iTunes again and again.


You can delete the older .xml files, because new ones will be created as time goes by. Or you can use a previous .XML file to help rebuild a new library, etc. Be careful when opening XML files because they are like files from Word Excel or Numbers and can be misread or interpreted incorrectly, if not used properly.


Refer to iTunes Help, Apple Support Communities, or Call, but keep the conversations flowing for people like me.


So when the next time you open your DJ Software, hopefully you can update it to match iTunes as its designed to be. Don't worry if a songs missing, its just been moved around somehow and can be put back. Create a new library or play list in your DJ software before your DJ Gig! Good Dj Software should update files automatically. I'm sure there's an App for that. It's more difficult to lose your files these day when backing up your files daily using Time Machine and iCloud. Unless you erase it completely, like Prego, it's in there.


These are some things I've had to manage in the past. I hope this helps or if anyone wants to add or give me some ideas, I always welcome them, too. I'm always learning. Lastly, I have a few things to check and do for my Virtual DJ Pro, then we'll update to Lion at the last minute, like usual. LOL After all I only have 4 days left before MobileMe ends.


DJ Jenn 😁


Jenntonic

June 26,2012

iTunes Music Library.xml won't update, can't export new library.xml

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.