You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

📰 Newsroom Update

Billie Eilish is Apple Music’s Artist of the Year for 2024. Learn more >

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

itunes library .itl file not recognised on transfer from Windows 7 to MacOS High Sierra

30 December 2020

I'd welcome any suggestions for the software I currently use to successfully transfer my iTunes library from a PC running Windows 7 and iTunes 12.8.2.3 to a 2009 iMac running High Sierra 10.13.6. No account de-authorised at this time.


I consolidated the library on the PC and copied and pasted the folder named "iTunes" to a flash disc.


I then copied and pasted this "iTunes" folder from the flash disc onto the iMac.


Option-clicked iTunes on my iMac to get the option to choose a library. I selected the iTunes Library.itl file that I transferred onto the iMac from Windows, and I got this error message: "The file 'iTunes Library.itl' cannot be read because it was created by a newer version of iTunes"


Thanks for any suggestions. I also own an iPad Pro running iPadOS 14.3. I currently sync this to the Windows 7 PC, but I had hoped to start syncing with the 2009 iMac!



iMac, macOS 10.13

Posted on Dec 30, 2020 7:09 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 31, 2020 6:51 AM

I took the detail verbatim from your earlier post. You need to get the newly made empty iTunes Library.itl file into the folder that contains the iTunes Media folder with your media in it. This is what creates the portable relationship between the library and the media, which in turn should allow the same .itl file to work when copied over to the Mac and placed in the same relationship to the media folder there.


tt2

15 replies
Question marked as Top-ranking reply

Dec 31, 2020 6:51 AM in response to Milind Arolker

I took the detail verbatim from your earlier post. You need to get the newly made empty iTunes Library.itl file into the folder that contains the iTunes Media folder with your media in it. This is what creates the portable relationship between the library and the media, which in turn should allow the same .itl file to work when copied over to the Mac and placed in the same relationship to the media folder there.


tt2

Dec 30, 2020 10:27 AM in response to Milind Arolker

Apologies, I assumed if the list imported at all if would only have done so if could correctly identify the target file for each reference. See it this helps move things along...



The "missing file" issue with exclamation marks happens if the file is no longer where iTunes or Music expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, one of its parent folders, the drive it lives on has had a name change, or you've moved a non-portable library to a different path (see Make a split library portable for details). It is also possible that iTunes or Music have changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place, or that you've been too aggressive when deleting duplicates at some point.


Select a track with an exclamation mark, use Cmd-I to get Song Info, then click No when asked to try to locate the track. Look on the file tab for the location the library thinks the file should be. Now take a look around your hard drives. Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive label has changed, it should be possible to reverse the actions. If the difference between the two paths is an additional Music folder in one path then this is a layout issue. I can explain further if that is the case. If everything is where it is supposed to be try Repair security permissions for iTunes for Mac - Apple Community.


In some cases the library may be able to repair itself if you go through the same steps with Get Info, or when playing a track, but this time click Locate and browse to the lost track. It may then offer to attempt to automatically fix other broken links. Although it says something like "use the same location" I think it expects to find the tracks in the same artist & album layout they were in previously, with one systematic change to the path.


If you want me to try to provide specific advice please post back the following details:

  1. The location of the media folder under iTunes|Music > Preferences > Advanced
  2. The location of a sample missing track shown under Song Info > File > Location that begins file://
  3. The true path to the file whose details you gave in 2



See also FixLinks - an AppleScript to repair broken links in Music - Apple Community. To use with iTunes change:

-- tell application "iTunes" -- Mojave or earlier

tell application "Music" -- Catalina or later

to:

tell application "iTunes" -- Mojave or earlier

-- tell application "Music" -- Catalina or later



tt2

Dec 30, 2020 2:27 PM in response to Milind Arolker

OK, and on the Windows box is all media connect to the library inside C drive >> Program Files >> iTunes >> iTunes Music >> iTunes Media?


Assuming so try the following:

  1. Use File > Library > Export Library to export the library as an XML file (already done)
  2. Close iTunes, rename the file iTunes Library.itl as iTunes Library (Old).itl
  3. Uninstall iTunes and all related components.
  4. Install iTunes 12.8.0.15 - links can be found in this user tip (I can't paste them here for reasons)
  5. Launch iTunes
  6. Import the XML file that made earlier, check that playlists are properly populated with tracks that play
  7. Close iTunes
  8. Transfer the iTunes Library.itl file to the Mac and place it in the iTunes Music folder
  9. Option-start-iTunes (if needed) to access the .itl file you've copied over


tt2

Dec 30, 2020 7:37 AM in response to Milind Arolker

Over on the PC open the library up again and Use File > Library > Export Library to export the library as an XML file. Copy the file over to the Mac and then use File > Library < Import Playlist to import the file you created. It should recreate the library if all goes well and iTunes manages to make sense of the changed paths. If not you'll need to use the same trick but downgrade iTunes on the Windows machine to say version 12.8.0.150. You can find links here.


Then after importing the XML into an empty library you should be able to move the iTunes Library.itl file this creates over to the Mac.


See also Move your iTunes library to a new computer - Apple Community for general advice.


tt2

Dec 30, 2020 11:36 AM in response to turingtest2

Thanks for your patience with me. This is more complicated than I thought...


I'd be grateful for further assistance, if you've time!


I clicked on a random m4a file that I have saved (from PC) onto the iMac, and then carried out the steps for your 3 questions. I am not able to see any track names, but I can see playlists in a folder when I open iTunes.


iTunes on the iMac occasionally doesn't open/boot, saying it can't find the library. If I create a new library, I am then able to import the xml file again and get a playlist structure - but no tracks logged in these playlists.


Here are my answers to your 3 questions ("admin" is me):


  1. /Users/admin/Music/iTunes Music/iTunes Media
  2. /Users/admin/Music/iTunes Music/iTunes Media/Music/Bernard Herrmann/Vertigo/01 Prelude And Rooftop.m4a
  3. True path: Users/admin/Music/iTunes Music/iTunes Media/Music/Bernard Herrmann/Vertigo/01 Prelude And Rooftop.m4a


2 and 3 are exactly the same on this iMac.


Thanks for your patience with me.

Dec 30, 2020 8:19 AM in response to turingtest2

Thanks tt2.


The importing of the "Library.xml" file worked. I can see the library set up on my iMac iTunes just as it appears on the windows PC.


But I got stuck with this instruction:


"Then after importing the XML into an empty library you should be able to move the iTunes Library.itl file this creates over to the Mac."


Can you explain the steps for moving the .itl file? I can't seem to get this to work, even when trying to open iTunes with the option key in order to select the .itl file (same error message as before).

Dec 30, 2020 9:09 AM in response to Milind Arolker

Milind Arolker wrote:

Thanks tt2.

The importing of the "Library.xml" file worked. I can see the library set up on my iMac iTunes just as it appears on the windows PC.


Great, job done then.


But I got stuck with this instruction:

"Then after importing the XML into an empty library you should be able to move the iTunes Library.itl file this creates over to the Mac."

Can you explain the steps for moving the .itl file? I can't seem to get this to work, even when trying to open iTunes with the option key in order to select the .itl file (same error message as before).


That was from a more complicated suggestion you only needed to take up if importing the Library.xml didn't work.


tt2

Dec 30, 2020 10:18 AM in response to turingtest2

Ok.


I'm still puzzled.


I have the music playlists set up - yes.


But I can't work out how to connect them to the 11GB worth of tracks/sound files that I copied when consolidating the PC iTunes library. (i.e. the iMac's iTunes playlists have no items/tracks in them).


I seem to have selected the correct location for the iTunes Media file that was copied from the PC to the iMac: >>users/[me]/Music/iTunes/iTunes Music/iTunes Media


But no tracks accessible...


Can you help again?

Dec 31, 2020 4:08 AM in response to turingtest2

Hi tt2.


Good news: steps 1-4 all done successfully.


But problems started when I tried to get the version 12.8.0.15 iTunes (on the PC) to import the .xml file. Could you take me through steps 5-9 in more detail?


What I saw happen at steps 5 and 6 was the .xml file become a folder containing .itl file. I panicked, but luckily noted I’d saved the step 1 .xml file on the iMac.


So my flash disk now has the ‘already done’ .xml file (thank goodness - the iMac labelled it library 2.xml as it could see the library.xml folder).


Grateful if you could take me through steps 5-9 again? At the moment on the PC, I click on iTunes, and the message comes up: “The folder containing “iTunes Library” cannot be found and is required. Please choose or created a new iTunes library”. I click OK but am now confused as to whether, on the PC, I “choose library” or “create library”... I’m clicking “Quit” for now


Thanks again!

Dec 31, 2020 5:21 AM in response to Milind Arolker

My mistake. Given your library isn't/wasn't at the correct path I should have added some more details.


5a. Press and hold down shift as you launch iTunes. Use the option to create a library. Save the library in C drive >> Program Files >> iTunes as iTunes New

5b. Close iTunes. Move the file iTunes Library.itl from C drive >> Program Files >> iTunes >> iTunes New to C drive >> Program Files >> iTunes >> iTunes Music

5c. Press and hold down shift as you launch iTunes. Use the option to choose a library. Browse to and open the library file C drive >> Program Files >> iTunes >> iTunes Music >> iTunes Library.itl

6a. Use File > Library > Import Playlist to import the XML file into the empty library, check that playlists are properly populated with tracks that play

7.-9. As before


tt2


Dec 31, 2020 8:34 AM in response to turingtest2

tt2!


Good news.


The .itl library that Windows iTunes 12.8.0.15 has been recognised by my iMac running iTunes 12.8.2.3!


I realised, after re-reading everything above, that I hadn’t connected the consolidated library (the iTunes Music folder created from Windows iTunes 12.10.10.2) to iTunes 12.8.0.15. Once I’d copied and pasted this onto the PC, all playlists and sound files linked perfectly and onto a new .itl file.


I then copied and pasted the new .itl file of iTunes 12.8.0.15 onto the flash disc and copied and pasted it into the required iMac folder for iTunes 12.8.2.3


Thank you very, very much for being patient with me!



itunes library .itl file not recognised on transfer from Windows 7 to MacOS High Sierra

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