Skip to main content
clairvoyant0101
Participating Frequently
March 3, 2022

P: (Win) Lr Export Bad argument #1 to stringByAppendingPathComponent (string expected, got nil)

  • March 3, 2022
  • 12 replies
  • 9396 views

Hello,

Issue:

I have a user experiencing an issue while trying to export photos using Lightroom. Not Lightroom Classic.

Lightroom Classic works as expected. 

I reinstalled Lightroom fresh, so it should be the latest version of the application.

Screenshot:

 

 

 

 

 

 

 

The user previously used the application on their home computer, but transitioned to their work computer and receives this error while attempting to export photos. I wonder if it has to do with where the application is trying to export files, but I have no idea how to change that. 

 

Any further information, I can provide. Any help is appreciated.

Thanks!

 

{Thread title modified by moderator}

12 replies

Participant
May 11, 2022

I had to export around 500 pictures and was getting the same error. None of the suggestions on this page helped.

It worked when I exported in smaller batches of 100. So I had to export 5 times the next batch/selection of 100.

Sameer K
Community Manager
Community Manager
March 4, 2022

Hi there,

 

Thanks for reaching out. We are here to help.

Could you please confirm the version of Lightroom & the exact version of the operating system(Windows + R > Winver & press OK) you are working on? Have you recently updated the operating system? Is Microsoft OneDrive backup enabled on this machine? Please share the location where you are trying to export.

 

Check the registry entries in the following location(might require IT authorization as this is on a work machine):

  • Press Windows + R > type in 'Regedit' and press OK to open Registry Editor.
  • Navigate to the following location in Registry Editor: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
  • Check & ensure the data values for all the registries are as below on your computer.

(For a closer look)

 

After applying these changes, please restart the computer and export in Lightroom.

 

We hope this helps.

Regards,

Sameer K

 

clairvoyant0101
Participating Frequently
March 15, 2022

Hi Sameer,

Was wondering if there was any kind of update here.. still no luck finding another solution to this issue.

 

Thanks!

Participant
May 8, 2023

Hi there,

 

Thanks for reaching out. We are here to help.
Changes to the default behavior/by design are not possible. The Pictures folder must be kept in a local location for export to work as expected.

Please check if the registry entries could be re-configured as suggested above, and the rest of the folders are not required to be changed. If this comes in place, the user might export to a different Onedrive associated folder.

 

We hope you understand,

Sameer K


Hallo Sameer,

ich habe die gleiche Fehlermeldung auf meinem privaten Desktop PC.
Am Anfang konnte ich Fotos ohne Probleme exportieren.
Nun erscheint immer die Fehlermeldung, wenn ich versuche Bilder zu exportieren.
Die hier angebotene Lösung hat bei mir nicht funktioniert.
Ich nutze Windows 10 und Lightroom 6.3.1