Itunes deleted my "Itunes Music Library.xml" file?

Here are the facts (and then I'll pose the question):
-Ipod 80gb Classic
-Just upgraded to Itunes v. 7.4.2.4 (after following the pop-up window asking me to upgrade to the latest version)
-Windows XP Pro
-My "Itunes Music Library.xml" file and the "iTunes Library.itl" file are stored in "C:\Documents and Settings\XXXXXX\My Documents\My Music\iTunes" but all of my music/tv shows/etc are stored in another location on my HD
Here's the problem:
After I upgraded Itunes, the "Itunes Music Library.xml" file and the "iTunes Library.itl" file were replaced with brand new blank files (10kb and 32kb, respectively). When I open Itunes, the library is blank. All of the music files are still on my hard drive in the other location, but they do not show up in Itunes.
When I plug in my Ipod (which still contains all of the music), Itunes says "The Ipod "my ipod" is synced with another Itunes library...What would you like to do?"
Here's my question:
How do I get Itunes to show the proper content that is already on my ipod and on my HD? I just need my old Itunes music library files back.
Thanks in advance.

One point where this seems to occur consistently is if you reboot or turn off Windows while iTunes is running, and have a largeish music collection.
Explanation: Programmatically, iTunes main window apparently responds OK (=TRUE) to the Windows WM_QUERYENDSESSION message and at the same time starts to write the *.ITL and *.XML files to the hard disk. Meanwhile, Windows continues to end the session because - after all - it was OK'ed by iTunes. Now, if the iTunes music library is "large enough", Windows will finish ending the session before iTunes has finished writing said files, and the next time you run iTunes they'll turn up corrupt. This is a huge caveat during iTunes reinstallation, because most of the time a reboot is needed whilst iTunes will necessarily be running at the same time (consequently, if you have a largeish music library, always back up the *.XML and *.ITL files before reinstalling or updating iTunes!!!!)
This is nearly an elementary bug, and a sad indication of the level of testing done by the Apple to products before they're released.
Workarounds: I myself just frequently backup the *.ITL and *:XML files to a different directory, and restore if file corruption occurs. Another workaround is to have another program (say, Notepad.exe) with an edited but unsaved file currently open. When Windows session ends, you will have one extra chance to delay the session end, so that either you remember to close iTunes first, or if iTunes was closed first, it'll have enough time to complete writing the library metadata back to disk.
Asian and European phone giants have nothing to afraid about iPhone, if iTunes and iPod classic are any indication of its quality.

Similar Messages

  • Can I manually edit the iTunes Music Library.xml file

    Here's why.
    Noticed on my Apple TV that there were a number of podcasts that when selected would say "Apple TV cannot play the current song".
    Looked in iTunes and these podcasts are no where to be found. Did some searches in Spotlight and also, turned up zeros. Not found.
    I then looked directly into my iTunes Music Library.xml file and sure enough there are the records.
    What is odd is that the location of all the bad songs have a similar invalid path.
    Bad path.
    <key>Location</key><string>file://localhost/Volumes/iTunes/iTunes/iTunes%20Music/Podcasts/KQED/podcast.mp3</string>
    Correct Path
    <key>Location</key><string>file://localhost/Volumes/iTunes/Music/Podcasts/KQED'/podcast.mp3</string>
    Now, all of these have dates that lead me to believe this was due to an iTunes upgrade back in September of 2005. It doesn't look like they are causing problems with iTunes itself. However, it is quite annoying for my Apple TV.
    Question. Is there a different way to fix this than just manually removing the entries from the xml file?
    I haven't tried to edit the iTunes Music Library.xml file just yet as I want to make I don't totally screw things up first.

    I did some additional testing here and I deleted the track information from the iTunes Music Library.xml
    On start up of iTunes, it does not add the deleted file back in. On the Apple TV, it still shows the bad file.
    What I think that means is that even the Apple TV gets its playlist information from another source.
    I have also started on another track which is to remove all of my podcasts from iTunes. Which I have now done.
    The only ones left are these bad tracks that only show up in the iTunes Music Library.xml file and more importantly on my Apple TV.
    I'd put this on the podcast or the Apple TV thread, but still believe this is an iTunes issue.

  • Why does iTunes not refresh the Music Library if files are updated?

    What if have already a nice library SYSTEM built for my music, and every time I add 30-50 files to 30-50 different locations, iTunes requires me to add the same song again... What if I am doing this updating for 3 hours and I can't remember anymore which songs I added to my Brazilian compilation folder? Why can't iTunes update the library with added files? I see this question popping up on a lot of forums. This is very cumbersome. I keep my international music collection organized by country of origin. If I let iTunes consolidate my music, it will put everything into one big folder organized by name of artist. I definitely don't want to let the program do that. I would lose all my work and all my system.
    Once I imported the folder system into iTunes though as a reference, it does not recognize if there was a change, music added, music deleted, music reogranized. It doesn't make sense to delete everything from the iTunes Music Library every time I update my music collection.
    Where is the solution? I want iTunes to find the changes and apply it to my Music Library automatically.
    I can live with my iPod only having the files in one big library, since I mostly use it for shuffle play anyway, but I want to keep my originals in an orderly manner based on style, country of origin, etc. I don't want to end up having all my files renamed and moved.
    So I need iTunes to refresh my Music Library by looking at the original folder I imported the list from, and make the necessary changes.

    I guess then this is a serious shortcoming of iTunes... Up till this point I owned an RCA Lyra MP3 player and it had no problems whatsoever doing these things. I guess, after seeing how iTunes and iPod works, I'd rather return to Lyra if it had an 80 G version. The only thing that still keeps me with iPod is the capacity.
    It seems like that iTunes is a very cumbersome program and it tries to be so much user friendly that it even tries to eliminate the human element. Sometimes, it makes sense to keep files organized in specific manner. Especially when there is work involved and productivity.
    I guess I will just delete everything from the play list and read in the main folder every once in a while, leaving the machine working on it during the night or something, then another night, it will refresh my iPod. That's the only solution I see right now.
    It is interesting that a huge program like iTunes cannot do what a small one like Lyra can. And I even read in user groups that some people created programs for this problem, but those programs don't work with iTunes 7 well yet, so I am stuck with the manual updating or the brutal deletion and re-reading.
    Thank you for the answer. At least I know what not to expect from the program. I just use it for only one purpose: load music onto iPod, then forget about it. It quite an unuseful program for me otherwise.
    G5   Mac OS X (10.4.8)  

  • Itunes deleted half my music library!

    Ok this one is a strange one... Last week, itunes just did erased half of my music library! What's strange is that something happen that erased every album that contained more than one discs! Almost all my library is made of greatest hits and compilation of any kind... So let say that I had the Phil Collins Platinum Collection which contain 3 discs... Disc 2 and 3 have been erased! And that for every artists that had more than one discs in the collection. Artist with singles disc haven't been touch! I Know it seems impossible but it really happen. I use a NAS disk to store my library which is set as a RAID 1 (mirroring).. I was hopping it was a disk problem (so I would be able to retrieve the data from the other disk... no both disk where operating A1... it seems like it was some kind of command to delete those album! I've just finish re-importing every album one disc at a time! Hope It won't happen again!

    I did first check to see if it was just a corruption of the Itunes library. But the files were no longer on my HD. Free Space on disk jumped from 28gb free to 36gb free.
    First checked the disk using disk utility then used Disk Warrior just to make sure disk utility was not missing anything. Both came back as reporting no errors.
    So I am still at a lose on how this happened and what I can do to prevent it form happing again.
    Still there was no logic to the files that were deleted, it was not 1 for 1 with the songs and videos on the Ipod. Nor was it just songs or movies that were not purchased through Itunes. Some of the albums I had bought from Itunes were erased, others were left.
    About 60-70% of the songs lost were on the Ipod, and All the Movies, but not the Tv Series, all of the sample books that I had downloaded to Ibook were gone from the Ipod, but not the Ibook that came with Ibooks. But no Apps were lost from the Ipod or from Itunes.
    The only good thing is that I back up the Itunes library monthly, and use time machine every other day. So nothing was really lost just shocked me.. To have Itunes get rid of most of my music and videos.
    Looked through my log files and nothing showed up.
    and if it might help, Im using a MBP 17 2.6 4gbr 10.5.8 that i purchased in feb of 08 using Itunes 9.2
    But Thanks for your Reply.

  • Question: Multiple iTunes users w/ single music library on file server

    My son and I (separate computers) host all of our music on a common file server. Initially, it was my music library...when he loaded iTunes, it imported everything and all was fine.
    However, now if I add a few songs to the library (I can see them in the shared folders that we both have setup as our music folder within iTunes) they don't show up in his music library unless we either import them or drag them from File Mgr into iTunes.
    There has to be an "automatic" way...doesn't there?
    I'm eager for suggestions.
    Thanks much,
    Rick

    Sorry to say, there is not an easier way and folks have been requesting it from Apple for years.
    You are running into the situation noted in this article, towards the end
    http://support.apple.com/kb/HT1203
    +When another user of the computer has imported new music from CD, repeat steps 6 through 8 to add the music to your library.+

  • ITunes deleted my whole music library. I was not performing an upgrade at the time. They disappeared over night without me doing anything. How can i get them back without going one by one?

    I woke up this morning to find my computer had restarted itself. I don't know why. Must've upgraded something. When i opened iTunes my entire library was gone. The playlists are still there, just nothing inside them. iTunes didn't upgrade over night since it still asks me to. I've tried a system restore to the day previous but it did nothing. How can i get everything back the way it was? I would really like to not have to import it all again individually.

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping.  Note that in iTunes 11 an "empty" library may show your past purchases with links to stream or download them.
    In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device.
    Would you mind telling me which anti-virus package you use? It may be that it is disturbing iTunes when it tries to write out the fresh database, as it does after almost any activity with your library. I'm noticing more of this type of problem than usual and trying to see if there is any pattern. It may help to prevent a repeat of the problem if you look at the advanced options for your AV package and see if you can find a way to exclude the iTunes folder from any real-time scanning process.
    tt2

  • Why do i have to itunes library xml files?

    Along with iTunes Library, there are two xml files i have; itunes music library.xml and itunes library.xml, do i need them both? I only ask as the file path information in itunes music library.xml are not up to data(i moved my library to an external HD) and would like to know if it would be safe to delete it.
    The links in itunes library.xml have seem to been updated.
    Thanks
    "If it's not broken, don't fix it...
    ........I never learn!"

    Google is your friend! (To quote:)
    iTunes Music Library.xml
    This file contains some (but not all) of the same information stored in the iTunes Library file. The purpose of the iTunes Music Library.xml file is to make your music and playlists available to other applications on your computer. In Mac OS X other iLife applications (like iPhoto, iDVD, and iMovie) use this file to make it easier for you to add music from your iTunes library to your projects.
    Actual article: http://support.apple.com/kb/HT1660

  • ITunes Library.xml versus iTunes Music Library.xml

    Hi.
    What is the difference between the two?
    Thanks

    From this article: http://support.apple.com/kb/HT1660
    iTunes Library (iTunes Library.itl in Windows) is a database of the songs in your library and the playlists you've created. Some song-specific data is saved in this file. If you delete the file, iTunes creates a new, empty copy when you open the application, but any playlists, song ratings, comments, or other information you created is lost. The iTunes Library file is only used by iTunes.
    iTunes Music Library.xml file contains some (but not all) of the same information stored in the iTunes Library file. The purpose of the iTunes Music Library.xml file is to make your music and playlists available to other applications on your computer. In Mac OS X other iLife applications (like iPhoto, iDVD, and iMovie) use this file to make it easier for you to add music from your iTunes library to your projects.

  • ITunes Music Library.xml not updating when adding new songs

    I have about 150.000 music tracks on my iMac and iTunes didnt have any difficulty with it. When using the songs in DJ program Native Instruments Traktor Pro, this program checked the latest update of the iTunes Music Library.xml file and everything went ok. Whenever I changed a smart playlist or added songs, my Traktor looked at the updated .xml file and Traktor updated it's own files.
    SUDDENLY, and I dont know why, this iTunes Music Library.xml file did not update anymore. Whenever I change a song or add a song, the 'update date' in my finder next to the iTunes Music Library.xml file stays the same (1 May 2010) This means my DJ software does not show the updated/added songs...
    Plse help... what should I do... I am a professional DJ and I especially bought this iMac for the purpose of DJ'ing. Because of this issue, I can't use it anymore...

    try if the suggestions in this thread help: http://discussions.apple.com/thread.jspa?threadID=2168081&tstart=0.
    JGG

  • Description column and iTunes Music Library.xml??

    I see that there is a column in Itunes called description. I'd like to use it to store information but Itunes doesn't give me access to it. Why is it there then? I tried to open iTunes Music Library.xml file and add a description tag but that doesn't work. Does anybody ever tried to edit the xml file?
    Thanks
    JL
    PC   Windows XP  

    I found an update from sony (entertainment platform update)

  • Library .xml File

    I'm not sure why, but the library files being created by iTunes are called iTunes Library.itl (database file) and iTunes Library.xml I was just imformed that the default for the .xml file should actually be iTunes Music Library.xml How do I get iTunes to create the iTunes Music Library.xml file instead?
    The reason this is an issue is I have a separate media player that streams my iTunes music through my home stereo. This system allows you to use the iTunes playlists with it, but in order to do so it indexes with the iTunes Music Library file. Since mine is not there my playlists show up as empty. If I rename the file correctly then reindex the media player then the playlists show up fine. But of course the next time I open/close iTunes & it saves the library then it creates a new iTunes Library.xml file. For the time being I am simply renaming the file anytime I update my playlists, but this is a work around & I'm trying to figure out how to get iTunes to go back to its default of iTunes Music Library.xml. Perhaps I should do a reinstall of itunes then import the correct file????

    Nope, doesn't work. If I delete the .xml file it will simply recreate another one the next time I open/close itunes, but it will still be named iTunes Library.xml
    Tonight I even tried to uninstall itunes completely, then reinstall it and start my library from scratch, but once again it created an iTumes Library, not iTunes Music Library .xml
    Any other ideas?

  • Multiple library.xml files normal?

    I just made 2 iTunes libraries, both located in the Music folder on my internal HD. One is just called "iTunes" which gets backed up with time machine, and the other is called "iTunes For Backup", which I use for temporary music projects etc that I exclude from backup to save space.
    The one called "iTunes For Backup" has an "iTunes Library.xml" file as normal, but the "iTunes" folder has both an "iTunes Library.xml" file AND an "iTunes Music Library.xml" file.
    After playing around, I discovered that if I start from scratch and create a new library called "iTunes", initially it will create just the "iTunes Library.xml" file, but as soon as I've added songs and quit, it creates a second file called "iTunes Music Library.xml". If I create a new iTunes library and name it anything other than "iTunes", only an "iTunes Library.xml" is ever created, which I think is normal behaviour.
    To be honest I don't even know if this is a problem, but I've never seen multiple Library.xml files inside the same iTunes folder before. And why it would have anything to do with what you name the library seems baffling. It strikes me as very odd behaviour so I thought I would throw it out there out of curiousity to see if this is normal. I'd hate to find out it's a problem after I've built a huge library.

    I'm wondering the exact same thing.
    I'm able to find a lot of resources on the itunes library.xml file, but hardly anything on the itunes music library.xml file…
    I'm also lost as to how I import my playlists back into iTunes. I keep my music on an internal 'Media' partition and am pretty well versed with OSX, but can't seem to figure it out… All the problems relate back to both of these XML files. Importing one will import some of the playlists, but not all… Weird

  • Have found multiple iTunes Library.xml files. Moved Library to new Hard Drive and it needs to be completely rebuilt?

    Hello. I have a Mac Mini operating Mac OS X 10.7.2. I recently had to move my iTunes Library to a new hard drive. I followed the directions on how to move the library and refind everything yet when I do so what comes up is a mere skeleton of what I had. I have had to hunt down my purchased Apps, Music and Movies and re-add them to the library. I also noticed in doing this I have multiple iTunes Library.xml files ... shouldn't there only be one?  If so how do I clean this up without doing any accidental damage (i.e. how do I find the one that is being used and delete the rest?)?  If I delete the others is there any risk of losing purchased content? Lastly syncing my iPads has become a nightmare as I get the "This iPad is currently synced to another iTunes library" message. Obviously something

    It's hard for me to picture the exact situation. It sounds like you still have your library file on the internal but some files on the external, and maybe some on the internal, some of which are in the library and others not...  By re-adding things after consolidating it may have made things into a hodge-podge. Yes, that article you referenced says: "iTunes for Mac: Moving your iTunes Media folder"with Media Folder being the emphasis.  You probably should have just moved your whole iTunes folder.  Still, moving the media folder as instructed should not have messed up the library.  Did you make the mistake of starting up iTunes before the external drive had mounted fully and it then told you it couldn't find many files?  How you proceed to sort it out will depend upon how much time you want to spend and how important things such as ratings and playcount are to you.  I have not actually used the consolidate feature across different drives myself (and don't feel inclined to do so here to test ).
    If you are in the USA you can download some previous purhcases with iCloud, but not all.
    Here's a bit on what an iTunes folder should look like:
    What are the iTunes library files? - [http://support.apple.com/kb/HT1660]
    More on iTunes library files and what they do - [http://en.wikipedia.org/wiki/ITunes#Media_management]
    Library files with graphic and explanation of different iTunes versions - http://discussions.apple.com/message.jspa?messageID=13169517
    Once you get iTunes working off the external drive it should just put new media to the external when you add it.
    I have almost no experience with synching (I synched my neice's iPod, once, about 4 years ago).

  • Remaining junk in iTunes Music Library.xml

    Hello all,
    while browsing the cover view of iTunes, I discovered 2 remaining covers from a podcast and a TV-Show which I already deleted long time ago. Just the covers were listed and as the original files are gone, I neither could work/edit them nor could I delete them.
    I checked the "iTunes Music Library.xml" and found 2 entries representing the old podcast/TV-Show.
    Now I would like to know, how I can get rid of those. If I delete the xml file, it is being rebuild with exactly the same error.
    Any ideas out there?

    When you add things to your library, iTunes creates folders to hold the files. You may have deleted the podcast and TV show files, but the empty folder could still be in your iTunes folder and showing up in your library. Can you check to see if there are empty folders that need to be deleted? I don't have any podcasts or TV shows in my library to figure out where these might be located. But, do you have a podcast and TV show folder inside your itunes main folder similar to the iTunes music folder? If you do, look inside these for the empty folders.

  • Is there a way to rebuild the ITunes Library XML file from my IPod?

    After several promptings, I finally decided to install ITunes 7.4.3.1. Like a fool, I did not backup my entire library prior to doing this upgrade. Nothing is going to go wrong now mate, is it? Everything seemed to proceed just fine with the upgrade. I noticed that ITunes updated the XML Library in the process. Where the problems occured was after the upgrade, I was in the middle of listening to the latest "NPR Wait Wait Don't Tell Me" Podcast (I have some 3,000 downloaded podcasts in over 85GB worth of space) when ITunes crashed. When I brought ITunes back up, it had seemed to have reverted to an earlier backup ITunes Library XML file that I had made months ago.
    I still have all of the .mp3, .m4a, .mp4 and .m4v files stored in my ITunes Music folder. Somehow when I brought ITunes back up, it had lost all of the music I had dowloaded from the ITunes store even though the files were still out on disk. It thought there were only 395 podcasts despite the 3,000 plus files out there.
    Clearly, something went horribly wrong and I don't want to spend weeks downloading these files again when the only thing that really needs to be done is the ITunes Library XML data file needs to be rebuilt. It dawns on me that my IPod has an XML data file that save any updates I have not yet synced with it that it is quite current. Is there some way that I can sync my IPod with ITunes and copy the IPod XML data file into ITunes Library XML data file? I know that there must be some way to access the IPod since I can plug it into my Kenwood car stereo and read through the IPod's contents.
    Is there anyone out there that has an idea that might be able to help me recover my ITunes library?
    Thanks for any assistance,
    --randyt00

    The XML file is not used by iTunes. It is created for the use of other programs. Your library is in the itl file. SInce you still have the file you could simply add them to your library using the add folder option instead of downloading again.
    What are library files
    http://docs.info.apple.com/article.html?artnum=93732
    Rebuild library.
    http://docs.info.apple.com/article.html?artnum=93313

Maybe you are looking for

  • TS3274 ipad mini won't boot up

    Ipad won't turn on.  It's that simple folks.

  • Hyperlink within a text in BO Webi XI R2 report

    Hello Guys, I need help regarding one requirement. I need to open another report by using the hyperlink. I created one stand alone which contains "Click Here" which directs to another report. But i also need to put some text along with this "Click he

  • Flickr upload -- only allows "web" photo size

    When I click the flickr button in iPhoto 09, a dialogue box comes up with dropdown menu options for "photos viewable by" and "photo size." In "photo size" I am only allowed to select "web" -- the other two options are grayed out and unselectable. Is

  • Disabling reports printing and generating to a file

    Can any one help me, i want a database function which disable printing and generating reports to a file where: - i have so many reports, so i do not want to put the function inside each report source - the printing or generating conditions varies fro

  • Supplementary conditions not allowed

    while maintaining the item conditions in ME47 i am getting this error........ Condition type ZBP0 does not allow supplementary conditions Message no. VK387 Diagnosis Branching to the additional condition screen is only allowed for conditions with a p