Cannot export certain photos from Photos Library without error

If I try to drag a photo from the Photos Library anywhere outside of the Photos app (eg, to the Mac desktop or into the body of an email), it doesn't work and I get the error message below.


When I click "Reveal in Finder" from the pop up, nothing happens.


Once I clicked on the option on one of the photos to "Revert to Original" and that made the photo appear blank and I have never gotten it back, even after Undoing that action. So I am loathe to trying that again on another photo.


I also tried to rebuild the Photos database, which didn't help.


Anecdotally, this issue is affecting close to 100% of my older photos - only the more recent ones are spared.


I am running Ventura 13.6.6 on a 2017 iMac.


Any help would be greatly appreciated. Thanks.



iMac 27″ 5K, macOS 13.6

Posted on May 6, 2024 7:21 AM

Reply
7 replies

May 6, 2024 7:39 AM in response to MGR

Dragging a photo will export the preview of the edited version, so your photos do not seem to have previews. Can you export the originals? If you have not done so, try, if using the command "File > export > Export unmodified original" is giving the same error.


Where is your Photos Library stored? Is it in your Pictures folder or on an external drive?

If the library is on an external drive, you may want to check, if the drive is suitable for a Photos Library as described here: Move your Photos library to save space on your Mac - Apple Support

  • The file system format needs to be mMacOS Extended (Journaled) or APFS.
  • The Drive must not have been used for Time Machine backups or have any backup software installed.
  • The external drive needs to have a wired connection and must not reaccessed over the local network.
  • if you cannot set the "Ignore ownership on this volume" flag, something is wrong with the external drive.

If your Photos Library is on the internal drive of your Mac, check, if it has become moved to a synced folder. The syncing can damage the library badly. The Photos Library must not be in a Dropbox folder or on iCloud Drive, or in your Documents folder or on the Desktop, if these folders are syncing with iCloud Drive, or on Google Drive. If your library is in such a synced folder, drag it back to your Pictures folder and hope, that any damage can be repaired, once the library is back in a safe location.


Or have you been running any application to remove duplicates from your Photos Library? Some of them can damage the library badly. In that case you will have to restore the library from the last backup you made before you tried to "clean" the library. If a cleaning app has removed the originals, it cannot be repaired.


May 6, 2024 7:47 AM in response to MGR

It sounds like the Photos database has lost the connection between the pictures and the original file. Picture files are usually stored inside the Library package where they can be "managed" by the database, but sometimes, perhaps inadvertently, the database may make "reference" to files stored somewhere else, and the connection can become lost. This may be what happened. You can see if pictures are "referenced" with a Smart Album, like this:

(By default, Libraries are Managed, not Referenced, so I had to make a special Library to show this.)


Check and see what you get. In that case, the original files may be hard to find-- they could be on your internal drive somewhere, on a backup, or erased.


Double check the General Settings to see if you have checked "Copy Items" is checked-- this is the default setting.

It may be that with your older pictures this got changed, somehow.


Other things I need to ask: Are you using iCloud to sync your Photos Libraries with your devices? Sometimes that connection to the originals gets confused.


Are you using an external hard drive for your Photos Library? If so, how is it formatted? To avoid damaging the Photos Library an external drive must be formatted in either APFS format or Mac OS Extended (Journaled) format. Additionally, the drive can not have had Time Machine on it since it was formatted. There have been so many problems with using incompatible drives that the newest macOSs won't even allow a Library on a non-Mac formatted drive to open, since there is a chance of damaging the Photos database. See this:

Move your Photos library to save space on your Mac - Apple Support


Let us know...

May 6, 2024 10:53 AM in response to MGR

A while ago I did run Duplicate Detective though that was quite a while ago and this issue only surfaced recently.


That may be the answer to your problem. It may have removed the original file leaving the lower resolution preview file that is used to display edits, etc.


I have done that is successful is to search for the filename in spotlight. When I do that, I can locate the file and use it outside of the Photos app.


Since Spotlight can't search within Photos Libraries those files must be located somewhere outside. So that brings up the question are you running an "managed" or "referenced" library. The managed option might have been turned off temporarily due to a system update or upgrade.



May 7, 2024 7:25 PM in response to léonie

First, thank you all for your help here. This is stressful!


OK, here are a few results:


  1. I created a new smart album in Photos and set the rule to "Photo IS Referenced". 0 items matched.
  2. I confirmed that "Copy items to the Photos library" is checked in General Settings.
  3. I had mentioned that I could locate the photos by searching for the filename in Spotlight. When I CMD-I, I realize that the location of the file is actually in my old iPhotos Library, which hasn't been updated in close to 10 years.


Do any of these provide any further clues?

May 7, 2024 11:31 PM in response to MGR

" When I CMD-I, I realize that the location of the file is actually in my old iPhotos Library, which hasn't been updated in close to 10 years."


That is what I suspected. When Aperture 3 and iPhoto '11 came out and Apple made the libraries compatible for both applications, there has been a short period, when we could migrate iPhoto Libraries to Aperture, while sharing the originals in iPhoto with Aperture. We then had to keep the Aperture Libraries and the iPhoto Libraries on the original volume, or Aperture could no longer find them. These shared mongrels did not show in Aperture as referenced files. As none of my current Aperture libraries has been migrated this way, I cannot test, if Photos can handle this properly.

You could try to import the iPhoto Library with the originals into your Photos Library with the missing originals. Photos on Ventura can import photos directly from iPhoto Libraries and Aperture libraries.

  • Open library you want to import the items to in Photos.
  • Then use the command "File > Import" and select the iPhoto Library for import.
  • Click the blue button "Check for Import" (or similar - my Mac is currently set to German as the system language).
  • Now wait for the missing photos to appear in the import window. This can take a very long time for a large library. It may help to close all other apps that you do not need while you are working with Photos to free some memory, if the library is large.




May 6, 2024 8:13 AM in response to léonie

Thanks for the quick response. I tried: "File > export > Export unmodified original" to one of the photos and got the same error.


My Photos Library is stored in the Pictures folder on the internal drive. It is not in a dropbox folder or on an icloud drive or in the Documents folder or on the Desktop.


A while ago I did run Duplicate Detective though that was quite a while ago and this issue only surfaced recently.


The only other thing I can think of is that I do backup the Pictures folder (including the Photos Library) to a 3rd party cloud service, but this isn't a sync function; rather it is just a backup.


For what it is worth, one thing I have done that is successful is to search for the filename in spotlight. When I do that, I can locate the file and use it outside of the Photos app. I would like to not have to go through thousands of photos in this way to do this if at all possible, though!


Any other thoughts given my responses?


Cannot export certain photos from Photos Library without error

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