Corrupt iTunes Library file (.itl AND .xml)

I just got a new mac and decided not to put my music on it. Instead I kept my entire itunes library on an external hard drive. At some point, my hard drive must have disconnected while using iTunes and the library files became corrupt. When I see the files (in finder) on my mac, their size = Zero KB and their "kind of" = Alias. When I check out those same files on my windows computer, it says their actual numerical size (probably before they became corrupt). I've read that you can restore playlists with the .xml file but that is also corrupt.
Is there any way at all to repair/recover this library? PLEASE HELP I've worked very hard on creating this library.

I had this problem repeatedly and found that it seems to happen when you exit or restart Windows while iTunes is running. Note that when you close the iTunes window the program actually continues to run for a significant amount of time after its window disappears and even after the "saving iTunes library" message disappears. Basically iTunes starts writing out its library and then gets interrupted during the shutdown, causing the corruption.
I have solved the problem with the very pathetic solution of bringing up Task Manager, switching to the Processes tab, and waiting until the iTunes.exe process is gone from the list. Then I know it is done writing and it's safe to exit or restart Windows. I have never had corruption when I have done this.
(This isn't completely consistent with the posts above since one claimed that they restored a known good library after reboot and still had the problem. Perhaps that is something else, or perhaps the known good library had actually been corrupted before it was saved.)
Note that when the *.itl file is corrupted this way, it is pretty much always the case the the *.xml file is also corrupted. Since the XML file is text, iTunes is able to read what there is of it to rebuild the *.itl, but since the *.xml file is truncated, a lot of songs will be missing. It's a bit puzzling that Apple chose a library format that redundantly writes to two separate files but they write them out simultaneously so if one gets corrupted the other one almost always is corrupted as well.
The good news is that this problem is beyond simple to solve for Apple. The bad news is that for some inexplicable reason they keep releasing version after version with this same serious bug.

Similar Messages

  • New PC-do I need to transfer Itunes library files (itl and xml files?)

    Hi gang,
    I followed the Itunes tutorial for Windows and moved my Itunes music library to a EHD as it was filling up my laptop. I left the itl and xml library files on the laptop hard drive as instructed.
    However, this laptop is a work PC and if I change jobs I will need to download a new version of Itunes to the new PC. I know how to import the files from the EHD but my question is the following:
    1. Do I need to back up the itl and xml library files to the EHD before I give back the work PC? It seems likely since they contain info about the playlists.
    2. Once I download Itunes on the new PC would I just copy the library files onto the hard drive or can they remain on the EHD?
    It sounds like (from reading some info from Chris CA) that I need to make a copy of the Itunes folder (which includes the itl and xml files) from the laptop hard drive and put it on the EHD inside the EHD Itunes folder. Then with the new PC load a new version of Itunes and hold the shift key when launching. Then I would select the library from the EHD.
    Is that correct?
    Thanks!
    Any help would be appreciated as I cannot find anything on this in Itunes help or the forum.

    Assuming you start with a standard configuration which is:
    The iTunes folder in My music on your c: drive and all your music in the iTunes Music folder in the iTunes folder on the c: drive.
    Starting from there, with iTunes closed, you copy the iTunes folder to an external drive, this also copies the music in the iTunes Muisc folder.
    To move to a new PC, you install iTunes, then you drag your new iTunes folder to the desktop, then you replace it by copying the iTunes folder from the external drive.
    With this set up you can also run entirely on the EHD if you want to. Just start iTunes with the shift key held down, navigate to the iTunes folder on the external drive an choose iTunes Library.itl. This could be useful if you want to dake the EHD to work.
    If you are not starting from the default position I described, some adjustments would have to be made, but it would need an exact descripition of how your folders are set up at the moment.

  • ITunes library file .itl is locked

    I just got a new PC running Windows 7.  After retoring my music library from Carbonite I now receive the message, "The iTunes library file .itl is locked, on a locked disk, or you do not have write permission for this file" any time I try to open iTunes.  Any idea how to fix this?  Thanks!

    Hello koolaide77,
    The article linked below provides some useful troubleshooting steps and information that can help resolve this error.
    iTunes for Windows XP: "Disk is locked" or "iTunes folder cannot be found" when installing or opening iTunes
    http://support.apple.com/kb/HT1866
    Cheers,
    Allen

  • HT1660 iTunes library files full and cannot download movie but plenty of open disc space?

    iTunes library files full and cannot download movie but plenty of open disc space?

    To clarify, currently on the 2TB external drive are music and videos. I want to split them up and hopefully save some space - and maybe foresee problems in the future when I hit max capacity on the 1TB external, and think about a 4GB (not the best option I see at this time) or another 2 2TB drives.
    Doesn't the Library file just save locations when iTunes closes down so everything should be OK? I mean, the prog can recognize everything, it just won't download to anything, even if I move from the external drive an older movie to the new drive, it refuses to "see" the movie so I can download it.

  • I need help transferring my itunes content from an old exteranl hard drive to a new one. The itunes media folder is on the external drive, the itunes library file (.itl) resides on my mac in the music folder.

    I have already copied over from the old hard drive to the new hard drive the iTunes media folder (423 GB). But this does not contain the iTunes Library .itl file which for good or bad reason has been working from the mac itself from inside the user music folder. In iTunes Preferences, Adanced Preferences window the iTunes media fold location is currently set to the ITunes Media folder on the old hard drive. How and why i set it up like this all that time ago is forgotten! Do i simply browse for a new location for the newly created duplicaye file?  My worry is that i will end up with every song listed twice in iTunes, or worse manage to wipe the content like a mate did!

    Okay, solved.  Simple really, just moved the media folder location and there was no duplication. Phew!

  • Corrupt itunes library file

    I have had no crashes etc... I use iTunes daily. TOday I opened iTunes and it said it was importing my Library file... it then announced that the file was corrupt and created a new. Problem is, I now have nothing! None of my smart lists, playlist, no purchased music.. nothing. I even rented a movie last night... never started it... not there. Gone.
    Ideas?

    I suppose you could check in your itunes folder, and see if there is an old file there marked damaged, or corrupt or something. You could also try importing that file back into itunes from the file>import menu.

  • I get this error message when trying to open itunes library file.itl file is locked on a locked disk and i'm the only user on my computer.

    pls help

    Hello koolaide77,
    The article linked below provides some useful troubleshooting steps and information that can help resolve this error.
    iTunes for Windows XP: "Disk is locked" or "iTunes folder cannot be found" when installing or opening iTunes
    http://support.apple.com/kb/HT1866
    Cheers,
    Allen

  • How to Distribute (in person) MP3 that is linked to Itunes library files - rankings and info

    We have an album on iTunes.
    When we play shows I want to distribute some data cd's that contain a single mp3 of the title song for promotion.
    When the recepients load the file into their iTunes - I'd like iTunes to recognize this mp3 as the same file from the apple server libraries, so that ranking, song info, etc... is all completely synced.
    What would be the best way to proceed?
    Should I buy my own song to download the file from iTunes servers and then burn that on a CD?
    Or do I just convert a normal MP3 from the masters and somehow iTunes will analyze recognize it?
    Also - this would have to work regardless of windows or another platform

    THanks for the help,
    How do I insure that the MP3 is properly tagged? Does it just need to have all the spelling exact (i.e. 'Beatles' vs. 'The Beatles') or does there need to be something more, aka some embedded code...
    Would it be best for me to re-buy our track in the iTunes music store, and copy the file from iTunes to CD.. or is it better that I simply make a new MP3 from the CD masters and make sure all the names are the same?
    Not everyone loading the CD and MP3 will launch in iTunes, so I didn't want to have iTunes give me a somewhat proprietary file that caused trouble for people without quicktime... and yet i still wanted to be able to keep in sync with the file as it sits on the iTunes server with ranking for the people that have it installed.
    thanks
    pisa

  • How to re-create playlists from Windows iTune library file?

    After importing my itunes library from a Windows 7 sledded HDD, I have all my music etc but no playlists.
    The kb article that explains the importing of the library files (itl and .xml) give some warnings about doing this import.
    I can see both the xml file and a number of recent itl files on the sledded drive.
    Am I going to mess anything up by importing these? It's possible that some of the songs the playlists pointed to are no longer in iTunes (I deleted some beore the import). Is this going to cause a problem.
    Will this even work?

    Assuming your relocated library is now at *Z:\iTunes Media*, for example, copy the library files that you restored onto drive C: (iTunes Library.itl, iTunes Library Extras.itdb, iTunes Library Genius.itdb, sentinel & Album Artwork folder - ignore the .xml) into the parent of this folder, i.e. Z:\, then click the icon to launch iTunes and *immediately press and hold the SHIFT key* until presented with an option to choose or create a library. Choose the library at Z:\ - all should be well. If I guessed wrong just use your actual media folder & parent of that media folder as approptiate.
    tt2

  • Have itl and xml files on external hd am running home premium. can  no longer access files, am told this is because they were created with a newer version of itunes. also when i try to download 10.3 it wont, just says invalid drive j and for me to try aga

    i am running vista home premium on desktop and vista basic on laptop. have placed my itunes music with .itl and .xml files onto external drive connected to another desktop running vista and can no longer access music on first two mentioned comps only on the one connected to external drive. always am told that the library cant be read because it was created using a newer version of itunes. have tried to download 10.3 but it always tells me that i have and invalid hard drive j and to try again. any ideas?

    Older versions of iTunes cannot read libraries created with newer versions of iTunes. You need to have the same version of iTunes on all your PCs. Is that the case?
    As far as the problem installing iTunes goes, see this article from b noir on dealing with the problem:
    https://discussions.apple.com/thread/2450004
    If you get to the point where you need the Microsoft Installer cleanup utility, you will need more help as it has been withdrawn by Microsoft. but I am hoping the virtual drive trick will work,

  • Album art displays very slowly; iTunes library file is corrupted?

    Since I have updated to the latest version of Leopard, my album art in the iTunes music folder displays at a snail's pace, where before it was fast as lightning. It appears my iTunes Library file is corrupted, because when I created a new iTunes library file, all my art work on my tracks displayed very fast, no slowdown at all. Also when I logged in as a different user, same thing. No problems with my album art being displayed. Is there a way of fixing a corrupted iTunes library file? I have a lot of music, videos and TV shows, all neatly arranged in various playlists I created. Just to do it over again would take me weeks. Also since I've been backing my internal drive using Time Machine, can I go back and retrieve my iTunes library file before it became corrupted? Thank you for any help you can give me.

    You should be able to retieve your pre-corrupted library file from TM, provided the corruption didn't happen to far back.

  • Forgot to backup itunes library.itl and xml files

    I backup pretty much everything. Unfortunately I forgot about the itunes library datase files, the itubes library.itl and xml files. The hard drive has been repartioned and formated, so it's gone. I do have all the music in the exact same directory structure though. Both versions are Windows 7 x64. I aslo have my iPOD.
    What I want to figure out how to do is import the database into a new install of itunes. So the music and stuff doesn't matter. It's all there in the same set of folders, with the exact same path as before. Is there any way to create the itl and xml files containing the metadata from the iPOD?
    I wouldn't even be all that bummed if I had to let my music import from the hard drive again. I just really really want to import my playlists. That would really suck if I had to type them all in manually from the iPOD. If anyone could point me int he right direction, I would really appreciate it.

    Ok googlers from the future, here is the sultion I used.
    This solution puts everything back to normal with minimal work, but it costs you however much disk space is on your ipod. I downloaded the copytrans suite off the piratebay. Then I used the ipod copy to back up my ipod. This will copy things to folders based on tags. So you have to have a second copy of your music. Once it is backed up remote the itunes library files from the top folder of the itunes library. Start itunes, and then go to import playlist. Then you select the xml file from your ipod backup. This will import the entire library into itunes. When you sync your ipod it will say iit is going to delete everything and reload it, but it doesn't. If there was stuff that was no in the library it would delete it, but there won't be because the library came from your ipod to being with. So it just copies anything to it that wasn't there, if there is anything.
    From that point, when you want to add stuff to your library/ipod, you have to put a copy of the music in the library you made. So all the music you want on your computer and your ipod will take up double space on your hard drive because you have to put a copy in the library folder. Once it is there, you just go to add folder and select your library folder. THis will make it rescan and put the new songs in the database.
    The good part of this is you don't have to do selective ipod loading. You make the selection when you copy to the library folder. So at that point you just sync your ipod making an exact copy.
    That was the best solution for me anyway, with a big library and lots of playlists. I also never use itunes. The sole purpose of having itunes is to load my ipod. My ipod I use daily though. I don't drive anywhere without it connected to my stereo. Being able to select anything in a massive music library from my head unit while driving around is seriously awesome.

  • I have multiple libraries on an external drive. Somehow all the iTunes library files i.e. iTunes Library.itl, xml, itdb, Media folder, etc disappeared! Only the music files remain. Now when I start iTunes w/option it can't find any of the old libraries!

    Help! I 'm using an old G4 powerbook, Mac OSX 10.5.8, iTunes ver 10. I have multiple iTunes libraries on an external drive. Everything was fine for a while, then all of the iTunes library files, i.e. iTunes Library.itl, xml, itdb, artwork folder, Media folder, etc mysteriously disappeared! Only the music files remain (thank god) So now when I start iTunes w/option key to choose a library, I can't choose any of them because iTunes won't recognize them. Because all the library stuff is missing. So can I re-create the library files? (I don't care if I lose my ratings)
    Or should I create a new empty library on the external drive, then manually move all the music files to the Media folder in the new library?
    I tried some stupid ideas like creating a new library just to start iTunes, then going into prefs and advanced, then under iTunes Media folder location, selecting the location of the old library on the external, to see if iTunes would then find all the music which is still there, but no workee.
    I'm out of ideas, and I searched the archives.
    Help! anyone?
    Scott

    I don't know if this is me adding files to iTunes when the external wasn't connected
    it is.
    is it OK to just keep deleting that library on the Air?
    i wouldn't - at least not until i
    mount the external
    point iTunes media folder location back to the external via preferences > advanced
    consolidate my library via file > library > organize library
    The ntfs hasn't seem to be causing any problems, but I've always wanted to know.
    in order for your Mac to write to NTFS drives, it needs some help by installing e.g. the NTFS 3G driver. apparently that or something similar is installed on your Mac already. preferably, it would be formatted for Mac but then windows machines would need to have e.g. MacDrive installed to recognize the drive.

  • Why has this occurred The file "iTunes Library.itl" does not appear to be a valid iTunes library file. iTunes has created a new iTunes library and renamed this file to "iTunes Library (Damaged)".

    My itunes library suddenly that the file “iTunes Library.itl” does not appear to be a valid iTunes library file. iTunes has created a new iTunes library and renamed this file to “iTunes Library (Damaged)”. I use an external hard drive for my Itunes.

    The library file appears to have been corrupted.  You say you use your external drive but is the whole library on it or only your media?  No matter, you will have to rebuild the library file:
    iTunes: How to re-create your iTunes library and playlists - http://support.apple.com/kb/ht1451

  • .xml file and iTunes library files are missing from the music folder

    I recently made a second itunes library on my external hd, today when I open itunes and choose this library, the .xml file and itunes music file are invisible or translucent, therefore I can't open my library. But when I go to my music folder they are missing. Another odd thing is that all my music is still in the folder. Is there a way to re-open my library w/o re-importing all my music? Can I some how get a new itunes library file?
      Mac OS X (10.4.10)  

    This is not an answer but I have the same problem. From time to time I clone my music drive to an external drive for back up. When I do, I burn a copy of the album artwork folder, iTunes Music folder, iTunes Library.itl, iTunes Music Libraru.xml, and iTunes Library file to CDRW. This is so I can copy them into the music folder in my user home drive of my laptop then hook up the external and have access my library. Trouble is the .xml file and iTunes library files don't always show up when I go to the iTunes folder in my Music folder. There either is a blank where they should be or the names appear with no icon and when I click to select, that dissappers too. I thought I had a solve by exiting iTunes and letting it save everything. It seems to bring the .xml file back but not the itunes Library file. Any thoughts?

Maybe you are looking for