iTunes Song File Location and Count Issues

I recently switched PCs and used an external hard drive to move all of my music files from my old PC to my new PC.


Though I had gone through edit > preferences > advanced to set the location of the folder to my iTunes folder with the transferred music, a lot of my music is grayed out.


The music that Apple Music can trace is fine since I can just download off of Apple Music to save on my phone.


I have 2 issues:

1) Being an avid hip hop fan, I have a lot of underground mixes and mixtapes that Apple Music doesn't have. Some of these songs/tapes have hundreds of plays on my play count (been listening to them for ~10 years). Ideally, I would not like to lose the play count, so just re-adding the files won't help me since the play count will go back to 0. How can I have the files in iTunes trace to their saved location in my iTunes folder?


2) Following up with the question above, a lot of tracks, when I go to Song Info > File, say "Location: iCloud". How can I change this location from iCloud to the actual file saved on my computer? It says this even for music that isn't on Apple Music.


I've been trying to figure this out on and off for months, so please help me!


Thanks!

iPhone 8, iOS 11.4.1

Posted on Sep 2, 2018 8:14 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 3, 2018 4:47 PM

The "missing file" issue with exclamation marks happens if the file is no longer where iTunes 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, or the drive it lives on has had a change of drive letter, 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 has 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. See Getting iTunes & Windows Media Player to play nicely if you're trying to access your media with any other media players.


Select a track with an exclamation mark, use Ctrl-I to Get Info, then click No when asked to try to locate the track. Look on the file tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive letter 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 Windows.


In some cases iTunes 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 another application like Windows Media Player has moved/renamed the files, or the library has been moved from OS X to Windows, then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works. It might need some tweaking if your media is in a non-standard layout.


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

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


Note the addition of file://localhost/ (and the flipped direction of slashes in Windows) is normal for a file that isn't quite where iTunes is expecting to find it.




You cannot fix cloudy items with the method above. These will need to be downloaded. You can then import the media folder to include any currently disconnected files, dedupe, turn off keep organized, and turn it back on again to normalise the media folder. See Re: Deleting duplicate tracks for more on deduping.




tt2

Similar questions

5 replies
Question marked as Top-ranking reply

Sep 3, 2018 4:47 PM in response to stephan281

The "missing file" issue with exclamation marks happens if the file is no longer where iTunes 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, or the drive it lives on has had a change of drive letter, 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 has 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. See Getting iTunes & Windows Media Player to play nicely if you're trying to access your media with any other media players.


Select a track with an exclamation mark, use Ctrl-I to Get Info, then click No when asked to try to locate the track. Look on the file tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive letter 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 Windows.


In some cases iTunes 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 another application like Windows Media Player has moved/renamed the files, or the library has been moved from OS X to Windows, then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works. It might need some tweaking if your media is in a non-standard layout.


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

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


Note the addition of file://localhost/ (and the flipped direction of slashes in Windows) is normal for a file that isn't quite where iTunes is expecting to find it.




You cannot fix cloudy items with the method above. These will need to be downloaded. You can then import the media folder to include any currently disconnected files, dedupe, turn off keep organized, and turn it back on again to normalise the media folder. See Re: Deleting duplicate tracks for more on deduping.




tt2

Sep 3, 2018 7:05 AM in response to turingtest2

Hi turingtest2,


Thank you kindly for your response!


However, my issue is slightly different. Unfortunately, none of the tracks actually have the exclamation mark, so I'm unable to actually manually adjust my file location. Instead, they all say location: iCloud, and I can't seem to find a way to change the file location from iCloud to the file path of the .mp3 file on my computer.


Please see the example below. As you can see, this song (and album for that matter) has location: iCloud, and I can't change it. This album isn't on Apple Music unfortunately either.


As for duplicates, the issue then becomes that, though I can re-add the files to iTunes, the only ones that now work are the new ones with "0" play count, while the duplicates are the original ones with the hundreds of play counts. I'd prefer not to do that but it looks like I may have to.


Please let me know what you think. Thanks!


User uploaded file

Sep 3, 2018 4:50 PM in response to turingtest2

Thanks again tt2.


I managed to fix the linking issue by starting iTunes again, holding down the shift key (I'm on a PC) then picking the library file that I had saved on my external hard drive from a backup of my old PC. Now all of my music is there.


However, I've come across one more issue. I can't seem to find a way to have all of my saved music saved on my iPhone while running iCloud Music Library. I can turn it off on my iPhone and iTunes but then it'll delete all of my saved music from Apple Music.


Any work around for this, or will I just have to accept defeat by losing my saved Apple Music, syncing my old downloaded music, then turning on the iCloud Music Library again so that I can save everything via Apple Music going forward?


Thanks!

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.

iTunes Song File Location and Count Issues

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