The iTunes Library file cannot be saved. An unknown error occured (-50).

The iTunes Library file cannot be saved. An unknown error occured (-50).
I'm getting that error constantly. It's causing me to lose music that I purchased. What's going on?

mac mini, Mac OS X (10.4.10)

Posted on Jul 5, 2007 9:03 PM

Reply
35 replies

Jul 5, 2007 9:15 PM in response to rogueusmc

I lost two full albums. I posted through iTunes what had happened and they set it up so that I could re-download ONE song off of one of the albums... and didn't tell me how to fix the problem, so even that one sad song will be gone next time I restart iTunes. I need someone to tell me what to do. I won't bother reinstalling iTunes because that doesn't seem to help, although I am backing up my music now.

Jul 5, 2007 9:53 PM in response to Gil Jawetz

Quoted from another thread...this worked for me.

Here is the fix everyone. Can't take the credit myself though

Piecrust posted it on the upgrade iTunes thread, I've tried all the other suggestions and none of them worked. However, this one did.

"HOW I FIXED THIS ON MY MACHINE:

In iTunes goto File/Export Library and save the library.xml file on your desktop.

Close iTunes.

Delete the 2 library files in the itunes folder. (MAKE SURE TO DELETE BOTH FILES)

Restart iTunes... your library will be empty.

Goto file/import and choose the library file you just created in step one.

iTunes will then restore the library. I Deleted all my Video Podcasts, and I now think it was unnecessary... the new iTunes corrupts the library somehow.

Problem solved."

A few notes. In my iTunes folder there was another folder4 called 'previous iTunes librarys' I left this alone and the problem was fixed fine. I have since deleted them to free up disk space (and I hate untidy folders), and there has been no effect to iTunes. I also left the games library file untouched. I just deleted the library data file and the xml file. I DIDN'T delete my podcast video files or my itunes widget files etc. All these previous suggestions didn't do squat.

Someone has pointed out that with this fix you lose the play count and last played date. I don't care about that, but if you do, then sit still and wait for Apple to fix it...whenever that will be. They're normally much more on the ball than they have been with this upgrade.

Jul 6, 2007 4:23 PM in response to Gil Jawetz

I thought I followed the instructions, but somehow I lost all of my Podcast subscriptions. Fortunately the files were still there... or at least most of them. Going by the difference in file count before and after the 'fix', I seem to have lost 50 or 60 files.

 20" Intel iMac + Cinema Display + Sony HDR-HC7 HD camera Mac OS X (10.4.10) All tools, no talent!

Jul 6, 2007 5:34 PM in response to rogueusmc

Rebuilding the library is described here:

http://docs.info.apple.com/article.html?artnum=93313

Frustrating that the process blows away the "date added" info, since the XML file has that information (as well as other info that's not exposed by iTunes).

Recreating the Library also copied tracks which weren't located in my currently selected Library into the Library... which I'm wondering if was a reason for the error -50. I would point to different folders to use as a Library before ripping some CDs and then switch back to my "main" one.

Pointing to multiple Library folders like this had gotten more and more problematic since around version 4 or so. I think iTunes 7.3 is going to be the one that forces me into everything-in-one-bucket file management.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

The iTunes Library file cannot be saved. An unknown error occured (-50).

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