Problems syncing photos with iPod, iPhone, or Apple TV and iPhoto 8.1

Posted on December 8, 2009 by Brian Webster
Filed Under Tips & Tricks, iPhoto, iPhoto Library Manager, iTunes | 4 Comments

A bug has recently cropped up in iPhoto (version 8.1 appears to be the first version with the bug, and the bug remains as of version 8.1.1) which can cause problems when attempting to sync your photos using iTunes to any device, such as an iPod, iPhone, or Apple TV. I’ve seen a whole bunch of reports of iPhoto Library Manager users encountering this bug, enough that I thought a blog post describing the problem and the solution would be helpful.

Symptoms

If you suffer from this bug, when you open iTunes and attempt to sync a device with your iPhoto library via iTunes, you’ll get an error reading “iTunes cannot sync photos to (whatever device you’re using) because of a problem on your computer. An unknown error occurred (-50)”.

iTunes.jpg

When using iPhoto Library Manager to try to look at an affected library’s contents, you’ll get an error message reading “The album data file for this library is malformed. Encountered unknown ampersand-escape sequence at line X”.

iPhoto Library Manager.jpg

Cause

The root cause of this problem is triggered by the following setup:

  1. You’ve created a custom slideshow in your iPhoto library
  2. You have used the “Music” button in iPhoto to assign a track from iTunes to play while the slideshow is being displayed
  3. The track you chose has an ampersand (&) character anywhere in the name of the song, the song’s artist name, or the song’s album name.

It’s actually the path to the song that’s relevant, but since iTunes organizes your music into subfolders based on these three fields, an ampersand existing in any one of them will result in the file’s path having an ampersand in it. An example is illustrated below, where a song by “Rob Thomas & Santana” is selected as the music for a slideshow

Music Settings.jpg

Solution

There are actually a couple different ways to work around this problem. I’ll list them here in order from simplest to most complicated.

  1. Delete the slideshow. Simple, but effective. But on the other hand, you lose your slideshow!
  2. Turn off music for the slideshow. Uncheck the “Play music during slideshow” checkbox and then click the “Apply” button to save your changes. But what if you still want to have music during your slideshow…?
  3. Choose a different song. Select a different song, one where no ampersand character occurs in either the song name, artist, or album title, then click “Apply”. But what if you really really want that specific song you spent hours and hours choosing from your vast music collection to find the perfect one?
  4. Remove all the ampersands. The only way to keep using the same song will be to remove any offending ampersands that occur in the path to the song file. For this, you’ll have to open up iTunes, find the song in question, and change the name, album, and/or artist to remove any ampersand characters in those fields. After you’ve done so, you’ll also need to go back into iPhoto and re-choose the song in the slideshow music settings, to make sure iPhoto is updated to point to the song’s new location.

One additional source of ampersands is if your entire media folder is located inside a folder or drive with an ampersand in the name. For example, if you store your iTunes media folder on an external hard drive and have named the drive “Music & Video”, then this will cause all your songs to have an ampersand character in their path. If this is the case, then you’ll need to rename the hard drive or folder to remove the ampersand.

Once you’ve done that, if you quit iPhoto, open up iTunes, and try syncing your device again, you should now be able to successfully sync your photos. If you still get an error, double check and make sure that the changes you made in iPhoto have “stuck” (click that “Apply” button!), and if you have multiple slideshows, that you’ve checked all of them for potential troublemaking music settings.

Comments

4 Responses to “Problems syncing photos with iPod, iPhone, or Apple TV and iPhoto 8.1”

  1. Mike on December 21st, 2009 11:02 am

    Deleting Slideshows worked for me. Thanks

  2. Sharon on December 23rd, 2009 6:45 pm

    I spent over an hour today with Apple support and they were not able to resolve my issue. I have spent 10 min checking my slideshows and found a track “Cowboys & Kisses” and you nail it. I now have my photos back on my Iphone 3gs- Thank you Santa!

  3. brian on December 26th, 2009 10:54 am

    Wow, thanks… I have had all kinds of challenges using iphoto library with various programs/ipods/appletv. I’ve spent hours trying to figure it out and this work!

  4. Lars-Lennart Nielsen on January 2nd, 2010 4:39 pm

    I encountered the problem when I tried to import the iPhoto Library to my Aperture. Did not connect this problem with an other problem I´ve had for a while: error message (-50) when I sync my iPhone with my iMac. Thanks a lot for your solution, it worked great for me to erase my slideshows and albums. I had already tried the Apple phone support, rebuild function in iPhoto as well as iPhoto Library Manager without success!