with Lightroom 5.4.
I select a number of images and use the Export dialog, exporting to JPEG. After the export is finished I get a dialog box saying "Some export operations were not performed. The file could not be opened ()", and then lists the file names of the images that were not exported.
If I delete the exported JPEGs and try again a different subset of the selected images gets exported. On average around 20 out of 70 selected images don't get exported.
Watching the directory where the images are being exported with a file viewer while the export is in progress I can see that the images that are later shown in the "not exported" dialog box list are in fact being created in the target directory but are quickly deleted.
I have had one example of exporting of a single image failing with exactly the same error message.
I have never had this problem with version 5. I just ran an export of 126 images using Lightroom 5.6 which completed successfully, as has always been the case with version 5 and before that with version 4.
- 5 Posts
- 1 Reply Like
Posted 4 years ago
- 5 Posts
- 1 Reply Like
- 3 Posts
- 0 Reply Likes
- 13 Posts
- 2 Reply Likes
It appears to be completely random. The first time I try the export, 3 files "could not be opened". The second time, 6 files (which are different from the 3 that failed the first time) "could not be opened". It happens to both my raw file and my psd files.
Until this gets fixed, I can't use Lightroom because I need portraiture to be run. I am going to have to revert to an old version.
- 2 Posts
- 0 Reply Likes
- 13 Posts
- 2 Reply Likes
- 3 Posts
- 0 Reply Likes
- 2 Posts
- 0 Reply Likes
Of course that means there is an incompatibility between Bridge (I'm using the CS5 version) and Lightroom 6. Wonderful!
- 5 Posts
- 1 Reply Like
I'm glad you've found a workaround. Unfortunately this won't work for me as I don't use Bridge.
- 5 Posts
- 1 Reply Like
I don't get the problem with XnView open at the export directory
I do get the problem if Bridge is running (this is an old, CS2, version of Bridge).
- 3 Posts
- 0 Reply Likes
John R. Ellis, Champion
- 4047 Posts
- 1067 Reply Likes
Have you upgraded to CC 2015.1.1 / 6.1.1 or later? This problem was fixed in that release. Do Help > System Info to verify.
- 3 Posts
- 0 Reply Likes
- 3 Posts
- 0 Reply Likes
John R. Ellis, Champion
- 4047 Posts
- 1067 Reply Likes
If you decide to upgrade, do not upgrade to 2015.2.1 / 6.2.1 -- it's plagued with problems, and even Adobe suggests downgrading to 2015.1.1 / 6.1.1 if you encounter serious problems. See here for how to install 2015.1.1: http://www.lightroomqueen.com/how-do-...
John R. Ellis, Champion
- 4047 Posts
- 1067 Reply Likes
Those are much different symptoms than the problem reported and solved in this thread, in which the export completes with a dialog box saying "Some export operations were not performed."
This topic discusses the a more general problem of LR actually crashing (exiting abnormally) when exporting: http://feedback.photoshop.com/photosh.... Adobe is actively working on a next release to fix all the serious issues reported with CC 2015.2 / 6.2.
John R. Ellis, Champion
- 4047 Posts
- 1067 Reply Likes
- 3 Posts
- 0 Reply Likes
- 13 Posts
- 2 Reply Likes
- 4 Posts
- 0 Reply Likes
I normally export master edits as tiff files. Problem is exactly described by original poster.
Bridge seems to be involved as well. Will try closing bridge or moving to another directory when I export.
LR 6 is not done cooking, that's for sure.
- 4 Posts
- 0 Reply Likes
- 3 Posts
- 0 Reply Likes
- 3 Posts
- 0 Reply Likes
- 12 Posts
- 2 Reply Likes
Bridge not installed.
No image viewers running, nothing monitoring the directory except File Explorer open and showing the output directory.
Never had this problem with LR5.
- 1 Post
- 0 Reply Likes
- 23 Posts
- 4 Reply Likes
When I attempt to export files (as JPEGs) from Lightroom CC, some, but not all files fail to export (error message Lightroom could not open files.)
A second attempt results in DIFFERENT successes and failures.
After repeated attempts to export just the failed files, success is eventually achieved.
I tried optimising Lightroom catalogue, but that did not help.
After reading this discussion, I tried closing Bridge before performing the export and the problem went away.
I noticed another problem with Bridge CC which may or may not be related. That is when using the photo downloader and checking the "Convert to DNG" box. Most, though not all DNG conversions fail. If I run the photo downloader a second time all conversions are successful.
- 4 Posts
- 2 Reply Likes
Dear support,
in contrary to Lightroom 5.7 I noticed that Lightroom 6.0.1 stops randomly during export service of files with the message 'file could not be opened'. By the way the files which are mentioned could always be opened and accessed, so it's a false error message. I'm using Windows 7 SP1 64 Bit with 8 GB RAM and 500 GB HDD. The number of files during export could be in my case in the range of 300 new files with 12 - 36 MP. Could it be right that file handles are leaked? With export service I mean the publishing service to HDD.
Could you please fix this problem a.s.a.p. since an unsuperviced export is not possible.
Best, Andreas.
- 3 Posts
- 0 Reply Likes
I also have the problem described, and see the randomness described.
I do not have Bridge installed, I do not have Faststone installed.
It is a persistent and constant problem, which means that I have to double and triple-check EVERY export, from very small images (600px wide), to large (4000px wide).
Windows 7, LR CC.
Victoria Bampton - Lightroom Queen, Champion
- 4686 Posts
- 1798 Reply Likes
- 3 Posts
- 0 Reply Likes
- 4 Posts
- 0 Reply Likes
I use Lightroom 6 stand alone
John R. Ellis, Champion
- 4057 Posts
- 1069 Reply Likes
The trace also shows that LR 6 is writing each exported file twice, causing more than twice as much disk I/O as LR 5. This might account for reports of significantly slower exports. For example, Denni Russell reported that exports were taking 2x longer in LR 6 compared to LR 5: http://feedback.photoshop.com/photosh...
Details
I used Process Monitor to trace the file calls made by LR 6.0.1, LR 5.7.1, and Bridge CC during an export, on Windows 8.1.
Here is what LR 5.7.1 does when exporting "file.jpg":
1. Opens file.jpg for writing
2. Writes file.jpg
3. Closes file.jpg
But LR 6.0.1 adds more steps -- after writing "file.jpg", it reads it back into memory, then writes it out to a temp file "file.jpg.swp", and then renames "file.jpg.swp" back to "file.jpg":
1. Opens file.jpg for writing
2. Writes file.jpg
3. Closes file.jpg
4. Opens file.jpg for read/write access, read share mode
5. Reads file.jpg
6. Closes file.jpg
7. Opens file.jpg.swp for read/write access, read share mode
8. Writes file.jpg.swp (often with a slightly different number of bytes)
9. Close file.jpg.swp
10. Renames file.jpg.swp to file.jpg
There are two problems with this:
Problem 1: LR 6 is writing twice as many bytes to disk as necessary, slowing down exports. I have no facts as to why it is doing this, but as a former developer, I can guess -- an inexperienced programmer is attempting to fix some prior bug and chose an architecturally inept way of doing it. Perhaps the extra writes in steps 7-9 are rewriting the metadata as described in this bug report: http://feedback.photoshop.com/photosh.... The author of Exiftool observed that it appears that the metadata is first written in a more typical fashion, then rewritten in a more atypical fashion.
Problem 2: In step 4, LR 6 tries to reopen the just-written file with read/write access but then proceeds to just read the file. But a file viewer like Bridge may have just opened the file right after step 3 to construct a thumbnail, and if it still has the file open at step 4, LR's reopen for read/write access will fail. When it does, LR thinks some kind of file problem has occurred, deletes "file.jpg", and reports an error to the user.
Bridge is particularly aggressive at monitoring folders for new files so it can create thumbnails. The trace shows it continually trying to open newly created files, every couple of milliseconds.. So it's not surprising that when Bridge is open on the export folder, this problem happens fairly often.
But this problem is not specific to Bridge -- any file viewer, including Windows Explorer, could reasonably try to read the exported file to create a thumbnail, right after step 3. It could also happen with file utilities that are copying files in background (e.g. some kinds of backup programs).
The Fix
A LR architect should review why the file is being written twice instead of just once. Eliminating the second write would avoid the problem and speed up exports. But if it really is necessary to write the file twice, then there are two possible fixes:
a. Keep the file open from step 1 all the way through step 9, and get rid of the gratuitous rename. That way, no other program can access it until it is fully written and closed.
b. Open the file in step 4 for read access/read share mode instead of read/write access. That way, the open won't fail if another program also has the file open for reading. This fix is suboptimal, because the other program will read bytes from the file that aren't the "final" bytes (which won't be written until step 8).
- 13 Posts
- 2 Reply Likes
John R. Ellis, Champion
- 4057 Posts
- 1069 Reply Likes
- 5 Posts
- 1 Reply Like
(Now I understand why I sometimes saw an icon for an exported file appear in the target directory then almost instantly disappear.)
- 4 Posts
- 0 Reply Likes
Steve Sprengel, Champion
- 2668 Posts
- 343 Reply Likes
John R. Ellis, Champion
- 4057 Posts
- 1069 Reply Likes
Steve Sprengel, Champion
- 2668 Posts
- 343 Reply Likes
Where is the delete for file.jpg before the rename of file.jpg.swp to file.jpg? I don't see that step in your list.
John R. Ellis, Champion
- 4057 Posts
- 1069 Reply Likes
Steve Sprengel, Champion
- 2668 Posts
- 343 Reply Likes
John R. Ellis, Champion
- 4057 Posts
- 1069 Reply Likes
10. Rename file.jpg to file.tmp
11. Rename file.jpg.swp to file.jpg
12. Delete file.jpg.tmp
John R. Ellis, Champion
- 4057 Posts
- 1069 Reply Likes
Steve Sprengel, Champion
- 2668 Posts
- 343 Reply Likes
Rikk Flohr, Official Rep
- 4878 Posts
- 994 Reply Likes
Julie Kmoch, Sr. Development Manager
- 102 Posts
- 39 Reply Likes
- 2 Posts
- 0 Reply Likes
- Open Windows Photo Gallery and view already existing pictures in a folder
- Export pictures to the current folder opened by Windows Photo Gallery or any sub folder of the one Photo Gallery has open.
- Wait for Errors.
I believe you should be able to reproduce it as well, though you will need more than 1 or 2 pictures. I need at least 10 pictures to export for this issue to crop up.
As far as I know, export options don't matter. I am only exporting to Jpg at 90%. Everything else is default settings.
I will do more testing tonight, but after reading this post and running a few informal tests, this issue only seems to happen when I have Photo Gallery open. I think even an explorer window open could also cause this issue, but I am not near as detailed as Mr. Ellis is.
- 9 Posts
- 0 Reply Likes
I had to start using WD backup running a continuous backup of all image drives because Acronis was error prone. This explains why my exports are occasionally error filled. For now I track all files that have an issue and Export them again appears to fix just more unpaid work.
- 4 Posts
- 0 Reply Likes
It is a shame we had to pay for the program just to be beta testers and to get a fix will take some time I'm sure.
- 2 Posts
- 0 Reply Likes
I don't have bridge open. The number of files affected is random. In a batch of 108 files anywhere between 2 and 20 files will fail with the files being random and all over the batch.
I have never had this issue in previous versions of Lightroom so I not sure what is going on though this is not cool at all. Export is a vital function of Lightroom. Without it, what is the point of lightroom?
Julie Kmoch, Sr. Development Manager
- 102 Posts
- 39 Reply Likes
The temp file dance that John describes is intended to preserve the original in case something goes wrong with the file update. Which we find often does on Windows.
We can't write to a Windows file that another process has opened for reading. Export is done in two passes: first we write the pixels, then update the metadata. If another process, like Bridge, Windows Explorer's thumbnailing, or search indexing, grabs hold of the file before we finish the metadata write phase, we'll try our safe-save 10 times before giving up. Our best theory is that the gap between these two stages may have increased slightly, giving other processes a foothold to steal the file from us.
Closing Bridge or other apps that will be watching these fresh exports should indeed help. We'll look at other ways to stretch out the retries to work around it.
Related Categories
-
Lightroom Classic CC
- 13813 Conversations
- 3168 Followers