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

The iTunes library file cannot be saved.

Hello everyone,

I keep getting an error "The iTunes library file cannot be saved. You do not have enough access privileges for this operation." in random times when I use iTunes. I said in random times because I don't get an error when I import files to the library or to my iPhone and even though I click on "Don't show this message again." I still get it after I restart my PC.

The thing is that I don't have any problems even though I get the error. All my files are in the Library and I can access them successfully. I can also Synch my iPhone and the files are stored in the My Music folder.

My Windows account has Administrator privileges and like I said before I only get the error without having any problems (in other threads people have problems that's why they get the error - but I don't. That's odd..). Some information you might need, my OS is Windows 7, my iTunes version is 9.0.2.25 and I have an iPhone 3Gs 16GB. Of course before I made this post I made a search on the Support forum to find a solution but none of the previous threads managed to help me.

I'm looking forward to your reply, thank you in advance.

Self built, Windows 7, None

Posted on Dec 21, 2009 8:55 AM

Reply
13 replies

Dec 22, 2009 7:31 PM in response to balance-digital

Hello balance-digital,

thank you for replying. I tried that and now I get an error everytime I try to open iTunes. The error I get is "iTunes.exe has been set to run in compatibility mode for an older version of Windows. For best results, turn off compatibility mode for iTunes before you open it.". The thing is I didn't enable compatibility mode, if I go on Properties>Compatibility, "Run this program in compatibility mode for:" is unchecked. I only enabled "Run this program as an administrator". Also now it takes way too much time to open iTunes, it used to be instant and now with Administrator rights and compatibility problems, it takes about a minute.

Also even though I run the program with Administrator rights, I still get the error "The iTunes library file cannot be saved. You do not have enough access privileges for this operation.".

Thank you.

Dec 25, 2009 6:48 AM in response to Yanni_T

Unfortunately I cannot provide any assistance. However, I am having exactly the same problem. I believe everything is working fine for me except this message keeps popping up. The only problem I have had is saving some playlists. I am uisng 64 bit though which I was not sure if you were as well so I thought I would throw that into the mix. I am looking forward to a reply as this is a nuisance.

Dec 25, 2009 7:10 AM in response to RationalBus

Wait a second. I may have fixed my (our) problem. I saw another post somewhere that talked about making sure your itunes folder was NOT read only. Well, the folder itself was not read only. However, there was a temp file in the folder which was read only and I could not unset it from being read only. I tried deleting that temp file and was not able to. I reboot my computer and before launching itunes, I was able to delete that temp file. I then launched itunes, made changes to my playlists (I would have always seen the error in that case) and then synched my iphone. This worked with no errors or messages. I do hope this fixed the problem but only time will tell for sure.

Dec 25, 2009 12:56 PM in response to RationalBus

That's some good detective work. iTunes does use a TMP file to save the new library before it renames it. Which kind of makes sense - if it deleted the existing library while it was in use, that could cause problems.




Anyway, these kind of odd permissions problems have been around since Windows 95....heck,even DOS days. Rather than rebooting your PC to release the phantom lock on the file, it sometimes works to just rename the problem file.
If it happens again, try renaming it from IT.tmp to IT.tmp.OLD.




This may not be true in your case, but it could have gotten into that state if both itunes and security scanning software tried to put an exclusive lock on the file at the same time.

Dec 30, 2009 12:08 PM in response to Yanni_T

I have exactly the same problem as you and get the same response when trying the suggested solutions. I am running ESET Smart sexcurity and have excluded my itunes folders from the virus scan. One thing I did do was to move the music files to a different partition where there is more space and so the itunes library is my "c" drive whilst the music is on the "d". I also notice that I'm getting a large number of temporary files created in the same directory as my library and when I dlete them there doesn't appear to be a difference.

Jan 8, 2010 8:28 AM in response to merfy123

This is basically the exact same as me. I'm Windows 7 using Nod32, I've my iTunes in (C:) and Music on my external (H:) Drive. In my C: Drive itunes music folder i had 900.tmp files, i have deleted these, could someone explain what these are for? My Itunes Library has been wied three times and i've no idea why, i'm wondering is it to do with these messages. I really wish Apple could give a definitive answer as this seems to have happened to a lot of people.

Jan 8, 2010 12:43 PM in response to iancairns01

iancairns01, those .tmp files means some other software has a lock on the iTunes Library.itl file.
Every time you play a song, podacst, etc....itunes makes a tmp file, when it is done it renames it to iTunes Library.itl with the updated play count.



Something else has a lock on the ITL file, so itunes cannot rename it.
A common culprit is security software. If it is scanning the ITL file, tell it not to do that.

Jan 8, 2010 10:31 PM in response to Mareshalu

If you're an advanced PC user, get Process Monitor from SysInternals
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx


Set it to monitor what is accessing iTunes Library.itl and iTunes Library.xml



ProcessMonitor helped redkeefy and he found that some Sony software was causing the problem on his Vaio.
Others in that same thread found that Windows Live OneCare was causing problems. OneCare has been replaced by Microsoft Security Essentials for windows 7. Maybe there is a similar setup issue.



The older version of Process Monitor (FileMon), helped me years ago when lastfm was causing trouble with itunes (lastfm is fine now- the lastfm folks fixed it really quickly when I sent them the SysInternals log file of them locking the ITL too long)

Jan 10, 2010 8:36 PM in response to Katrina S.

Ok for now it seems to not show the error anymore.
What I did:
1. Edit upper and lower filters in the registry.(followed some guide from apple for registry cd drivers being damaged).
2. Edited security of both iTunes Library.itl and iTunes Music Library.xml to allow all users full control. Plus the whole itunes folder.

Thanks to all providing good help for us the end users.

Jan 29, 2010 3:40 PM in response to Mareshalu

Well your problem relates to NOD32 if you have it, or additionally another anti-virus. Simply open NOD32, Click Setup. Then click toggle Advanced mode. Once you have done that you click "enter entire advanced setup tree" under anti-virus and antispyware click exclusions. Next you add the path where itunes stores its info. So for me its c:\users\username\my music\itunes. And your off.

The iTunes library file cannot be saved.

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