Catalina Photos "The export operation failed to create af file for the photo identified below" "Unknown Error (4)"

Select a single photo in Photos and export it: "File -> Export 1 Photo..." or "File -> Export Unmodified Original for 1 Photo..."


Error message: "The export operation failed to create af file for the photo identified below" "Unknown Error (4)"


For some photos the export works fine 100% of the time

For other photos the export fails with the above error message 100% of the time


I already tried shutting down and restarting my computer.


I used to have "iCloud Photos: Optimize Mac Storage" enabled in the past, and about 2 weeks ago I changed it to "Download Originals to this Mac".


My photo library used to be on a different MacBook, but I replaced the MacBook with a new one and transferred everything from the old MacBook to the new MacBook using a time-machine backup and the migration tool.


I have 121,319 photos in my library, and plenty of free disk space (290 GB of 2000 GB still available)


When the error does occur, the following line always (every single time) appears in system.log:


Jul 20 12:54:53 Brunos-MacBook com.apple.xpc.launchd[1] (com.getdropbox.dropbox.garcon.3AABFC2F-8F72-41F7-BFB3-7BAFB5D370F8[1300]): Caller wanted oneshot behavior for pre-existing instance: caller = com.apple.appki


(Except the UUID is different in each log message)


Photos 5.0 (151.19.150)

macOS Catalina 10.15.5 (19F101)

MacBook Air (Retina, 13-inch, 2020)

MacBook Air 13″, macOS 10.15

Posted on Jul 20, 2020 4:06 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 6, 2020 12:57 AM

Does Photos have the access rights to "Files & Folders" and "Full Disk Access"? ?Please check the rights assigned to Photos in the System Preferences > Security & Privacy.

  • Select "Files & Folders" in the sidebar of " Security & Privacy". Unlock this panel with your password, then add Photos if it is missing by clicking the "+".
  • Select "Full Disk Access" in the sidebar of " Security & Privacy". Unlock this panel with your password, then add Photos if it is missing by clicking the "+".


As you transferred the home folder from a different Mac, it will not hurt to fix the permissions on your Home Folder to avoid file ownership issues. See: Resolve issues caused by changing the permissions of items in your home folder


Similar questions

17 replies

Aug 6, 2020 12:50 AM in response to ryane77

@ryanne77: The problem still happens when I boot in safe mode.


@ryanne77: New clue: when I try to edit one of the affected photos in the Photos app on the new MacBook, I get a "Cannot Start Editing: Photos cannot load adjustments for this image" error. Screenshot at https://imgur.com/nOi4a4K


@leonie: The files are JPEG. When I downloaded from iCloud I tried both "unmodified original" and "most compatible": both work.


Detailed current state:


* I have selected 3 Photos that consistently reproduce the issue for the experiments described below. (There are many thousands of other photos that also have the issue.)


* The Photos application on the new MacBook 2020 (Catalina) consistently reports "Unknown Error (4)" when I try to export the photos. It fails for both for normal export and "export unmodified original"


* When I try to edit one of the affected photos in the Photos app on the new MacBook, I get a "Cannot Start Editing: Photos cannot load adjustments for this image" error. Screenshot at https://imgur.com/nOi4a4K


* When I boot my new MacBook 2020 in "Safe Mode", the problem persists. Any attempt to export the photos still results in the same "Unknown Error (4)". I made sure that I actually was in safe mode: there was a red "Safe Boot" message in the top right of my screen.


* Possibly unrelated to the issue at hand: while in safe mode, I did notice that my MacBook was noticeably slower. All animations were stuttering. Repainting of the screen was slow (about 50ms per repaint) and I could clearly see the screen being repainted in horizontal bands.


* The Photos application on the old MacBook 2016 (Mojave) with the same Photos library (before it was migrated to the new MacBook and still synced to the same iCloud) consistently exports the photos successfully. It succeeds for both for normal export and "export unmodified original"


* The iCloud web-based photos application (using a browser) consistently downloads the photos successfully. It succeeds for both "download unmodified original" and "download mosts compatible including edits" in the "secret" drop-down menu.


* However, the first time (and only the first time) I tried to open the album in the iCloud web-based photos application I got an error message "Photos has stopped responding. An error has prevented this application from working properly." I selected "Send to Apple". This happened 6-Aug-2020 9:05am Netherlands time. I was using a Chrome 84.0.4147.105 browser. A screenshot is here: https://imgur.com/UkJC88g


* All 3 photos were taken and added to my library in late 2016 or early 2017


* All 3 photos are JPEG format (file extension JPG).


* Since these are old photos, it is quite possible that I used a (much) older version of Photos, or iPhotos, or Aperture to edit them in the past.


* For one of the photos I did a "Revert to Original" and then tried to export again. The revert operation worked, but it did not help: subsequent export attempts still failed with the same "Unknown Error (4)" on the new MacBook.


* Also likely unrelated to the issue at hand: yesterday I enhanced a few hundred photos trying to reproduce another issue (namely https://discussions.apple.com/thread/251652645). Since then (until I rebooted my MacBook in safe mode today) the photolibraryd daemon was pegged at 100% continuously.


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.

Catalina Photos "The export operation failed to create af file for the photo identified below" "Unknown Error (4)"

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