bryant_gibbons's profile

12 Messages

 • 

918 Points

Thu, Dec 15, 2011 6:10 PM

Closed

Lightroom 3.6: Export error "An internal error has occurred: Win32 API error 2 ("The system cannot find the file specified."> when calling ShellExecuteExW from AgWorkspace.shellExecute"

Getting an export to .jpg and/or .dng after upgrading to LR 3.6. Reinstall LR last evening, all worked well for a few hours and now getting the same error.

"An internal error has occurred: Win32 API error 2 ("The system cannot find the file specified."> when calling ShellExecuteExW from AgWorkspace.shellExecute

after selecting "OK" to clear the error the file does export strangly.

System Info:
Lightroom version: 3.6 [795620]

Operating system: Windows 7 Business Edition

Version: 6.1 [7601]

Application architecture: x86

System architecture: x86

Physical processor count: 2

Processor speed: 2.1 GHz

Built-in memory: 3581.9 MB

Real memory available to Lightroom: 716.8 MB

Real memory used by Lightroom: 214.4 MB (29.9%)

Virtual memory used by Lightroom: 198.9 MB

Memory cache size: 61.2 MB

System DPI setting: 96 DPI

Desktop composition enabled: No

Displays: 1) 1280x800

Serial Number: 116040022787739424107632

Application folder: C:\Program Files\Adobe\Adobe Photoshop Lightroom 3.6

Library Path: D:\D630 PIXs\LR D630 PIX\LR D630 PIX.lrcat

Settings Folder: C:\Users\BStock\AppData\Roaming\Adobe\Lightroom

Official Solution

Adobe Administrator

 • 

16K Messages

 • 

296.7K Points

10 y ago

Beat Gossweiler came up with this as a solution:

Check the Post-Processing section of your Export dialog:
In the dropdown of "After Export:", make sure you have a valid entry selected (choose "Do nothing" if you don't have special requirements).



I've heard of several users where this dropdown was blank (which is NOT a valid choice) after upgrading to LR4, leading to the error you describe.

1 Message

 • 

60 Points

Thank you very much for this resolution, my field " After Export " was empty, after inserting the words "Do nothing" the error Win32 API32 error 2 went away,
I spend hours and hours to get rid of this.
I'm running LR 4.1 and the error all of a sudden showed up.

Ones again, thank you very much for the help, Walter Fischer

3 Messages

 • 

80 Points

10 y ago

I received the same error when exporting an image. I'm running Windows 7 64-bit, Lightroom 3.6. Even though the error occurred, the image still exported.

1. In the Exports screen, I removed the export setting I was using.
2. Adding it back using a slightly different name (may be you can use the same name, I didn't test scenario).
3. Error message no longer displays. Image exports successfully.

I'm guessing the problem is the export file get corrupted for whatever reason and causes this error message.

Good luck. Hope this helps.
Ted

Employee

 • 

166 Messages

 • 

3K Points

10 y ago

Do you have a post processing action set up in the export dialog? The only place I can think of off hand where we'd use shell execute during export is in post processing or maybe some plugin/filter.

That would also explain why the export produced a file as expected and the error seemed to have no negative effects.

1 Message

 • 

60 Points

thank you ..I put in do nothing and it worked..OMG been looking at that message for four months..thanks again.

3 Messages

 • 

80 Points

10 y ago

In my situation, I do have a simple post processing action I run after export. After the images (JPEG) are created from the Lightroom, I open them for viewing in ACDSeePro3.exe, which is a photo manager application. I use this to add metadata (caption text and keywords) to the image using tokens, something Lightroom currently doesn't support.

Troubleshooting this issue, I discovered after the error occurred, if I exported the same image in Lightroom using a different Export preset, the error message did not display and everything worked as expected.

By way of details, the error occurred after an incident on my computer. I was editing an image in Photoshop CS4 after launching it from Lightroom 3. When I tried to save it, Photoshop said, can't do that, file open. I looked everywhere and couldn't find the file open. I couldn't understand why Photoshop was saying this. Then I discovered CrashPlan, my offsite backup application, had the file open as it was processing it in the background. I was on a deadline for a job and I forced something (I can't remember the details what exactly I did) to make Photoshop save the edited image so I could finish processing it in Lightroom.

It was after this interaction that the Lightroom 3 export error appeared. The image would export, but of course because of the error message, the post-processing action was not being triggered.

Later, I uninstalled and reinstalled Lightroom 3 as the first troubleshooting step, and this didn't contribute to the resolution. I knew Lightroom was upset about something that had gone awry... but it apparently wasn't an issue within the kernel of the program.

After giving it some thought, I recreate the Export Preset under a different filename (not sure that part mattered), and the error message no longer displayed and my export action was again working.

I didn't spend the time to determine root cause, I just was happy to get the software to restore to normal operation again.

Hope this helps.
Ted

Employee

 • 

166 Messages

 • 

3K Points

Interesting... I would have expected this error to indicate the target program to be executed could no longer be found at the original location.

I was able to reproduce the same dialog by setting the post processing action to open with a particular executable and then renaming the executable so that the action points to a non-existent path for the program.

Is there any chance that you've installed a new version of ACDSeePro that might have slightly changed the path to where its executable resides?

If you have the old and new export presets, I could probably confirm by comparing them, but in any case I'm glad you got it sorted out. I may file a bug internally to make that error message more clear.

3 Messages

 • 

80 Points

10 y ago

In my case, no I hadn't recently installed a new version of ACDSeePro. Been use V3 for 2-3 years now. The only thing that "changed" between when LR was working and when the error message appeared was the situation where CrashPlan was backing up the file I was editing between PS and LR.

Oh, there may have been another issue. I remember vaguely that I was trying to rename the image in Lightroom using the right panel to a more intuitive filename, and maybe I was trying to save the open image from PS to the previous filename.

What I'm trying to say is between Lightroom trying to import the image that was just updated from PS and me trying to rename the image while in Lightroom... and also the fact I remember doing something unwise like trying to rename the image filename in LR while it was simultaneously open in PS. May be these elements played a factor in the error.

I will say that while using LR2, I had this same error message occur once. I escalated to Adobe support. I never got it resolved. After upgrading to LR3, it went away.

Sorry I don't have really "good data" in this reply help troubleshoot. I just needed to get my client job done and move on to the next one, so I'm afraid I'm a little sketchy on the details that could lead you to a solution... hopefully this info can play a role in help you put together the pieces in some way.

I think it is wise to file a bug as this is not an intuitive error message... and doesn't help the User much in trying to resolve the issue. I was lucky.

Thanks! Ted

Employee

 • 

166 Messages

 • 

3K Points

As far as I know, the only path ShellExecuteExW would respond to with this error message is the path to the executable itself (it has no way of knowing how to properly interpret the rest of the arguments passed, so it won't check for their existence or attempt to even parse to see if the are paths) being invoked.

I'm baffled. I'll just have to mull this one over a bit more and see if something comes to me.

Thanks again for all the details you've provided!

9 Messages

 • 

312 Points

10 y ago

I've also started seeing this error on exporting images - although it exports them anyway ok. It still is worrying.

An internal error occurred: Win32 API32 error 2 ("The system cannot find the file specified.
") when calling ShellExecutreEXW from AgWorkspace.shellExecute

Then a second warning saying the same thing and it was unable to export.

Any more ideas please..?

John

Employee

 • 

166 Messages

 • 

3K Points

I've used code inspection and native breakpoints and the only way I can find to get shell execute to be invoked during an export is by having plugins involved or post processing actions set.

If those do not seem to be in your export, I'd say that the best bet for diagnosing this is to either post a screenshot of the complete contents of the export dialog or the contents of an export preset created with the exact settings you're using. There may be a way of generating this error that I overlooked.

DT

1 Message

 • 

60 Points

10 y ago

on another forum they suggested trashing preferences which I did. That worked.
thanks.

4 Messages

 • 

100 Points

10 y ago

I tried that too.... to no avail. It's a really terrible thing to get rid of. Tried repairing Lightroom (3.6), tried changing preferences, and so on.
Is there really no simple method to get rid of this ugly bug?

2 Messages

 • 

102 Points

10 y ago

Get the following error message when I try to Export to file a file on Desktop.
An internal error has occurred: Win32 API error2 ("The system cannot find the file specified.") when calling ShellExecuteExW fromAgWorkspace.shellExecute.
Window 7 64bit

This reply was created from a merged topic originally titled
Lightroom: Export Error to a file on desktop.

5 Messages

 • 

116 Points

10 y ago

In LightRoom 4, when exporting photos to my desktop or a subfolder I receive an Error message "Unable to Export: An internal error has occurred:Win32 API error 2 ("The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute
It does export the file however and is on my drive as instructed on output.
This never happened with Lightroom 3.5. I don't like seeing error messages and hope this can be resolved.
I am running Windows 7 64bit AMD quad core, 8 gb RAM.
Thanks

This reply was created from a merged topic originally titled
Error message upon exporting files in LR 4.

1 Message

 • 

64 Points

10 y ago

Lost ability to export images. Error message: Unable to export. Internal error- Win32API error 2 ("The system cannot find file specified when calling ShellExecuteExW from AgWorkspace.shellExecute)

This reply was created from a merged topic originally titled
Lightroom: Lost ability to export images..

4 Messages

 • 

124 Points

10 y ago

Mine STILL does this when my choice is 'open folder after export'. And after using ONONE plug ins.
win 7/64 bit
dual quad
12 gb RAM
Onone Perfect Photo 6.1 Suite
exporting to file on desktop doesnt matter if tiff/jpeg/psd - sometimes it exports, sometimes it doesnt. Same error.

3 Messages

 • 

92 Points

10 y ago

I use the Lr 4.0 build 814577 x64 with Simp-Chinese Win7 x64(SP1).When I export the raw file to JPEG file(s) by Lr 4,there will be dialoge "Unable to Export:An internal error occured:Win32 API error 2 when calling ShellExecuteExW from AgWorkspace.shellExcecute"
But in fact,most time it can export the files successfully.What's meaning of it?How Can fix it?Thanks

This reply was created from a merged topic originally titled
Unable to export by Lr 4.

7 Messages

 • 

134 Points

9 y ago

Just downloaded and installed LR 4.1 as an upgrade to 4.0 today. Made a couple of adjustments to an image and went to File->Export (to the hard drive).

Configured the export for a jpg to the desktop and got the following error:

Unable to Export:

An internal error has occurred: Win32 API error 2
("The system cannot find the file specified.")
when calling ShellExecuteExW from AgWorkspace.shellExecute

The export actually DID succeed and it looks fine. But it's disturbing to receive this error. I'm on an x64 Windows system and installed the x64 version of LR. Is this an x32 error? If so, why am I getting it?

Thanks! Steve

This reply was created from a merged topic originally titled
Unable to Export error message in Lightroom 4.1.

5 Messages

 • 

116 Points

9 y ago

The "solution" is at the top in the "Official response" post. Worked for me.

In the Export dialogue upon exporting files, check that the option for "after export" is not left blank. Select "do nothing" or whatever you like, but don't leave it blank.