Skip to main content
Adobe Photoshop Family
P

17 Messages

 • 

244 Points

Wed, Oct 21, 2020 7:54 PM

Solved

Lightroom Classic: When trying to add files to Collections I get this error: ?:0: attempt to compare two nil values

I just installed LrC 10 and when I went to add images to a target collection, I get the following error: ?:0: attempt to compare two nil values.  This is really holding me up organizing my photo book.  Please help.

Responses

1 Message

 • 

60 Points

3 months ago

I have also recently installed LrC 10 on my PC and found that when I went to add images to a target collection or just drag and drop into a collection, I get the following message, An internal error has occurred: ?:0: attempt to compare two nil values. This is really frustrating me as I'm not a computer buff and therefore I thank you for any help. I understand from earlier post that Adobe are aware of this issue and working on a fix?

57 Messages

 • 

860 Points

3 months ago

I have just upgraded my Lightroom Classic catalog to version 10. I synchronized my library folders and added a new batch of photos. Corrected the metadata, and [CTRL] S to save that back to the files.

Next, I created a Collection to hold these new photos and attempted to add some pictures into this collection. Lightroom won't allow me to add, and is prompting:  [Error] An internal error has occurred: ?:0: attempt to compare nil with string. [OK]

Note: This comment was created from a merged conversation originally titled Internal error ?:0: attempt to compare nil with string when adding photos to a collection

57 Messages

 • 

860 Points

I have tried optimizing the database and restarting Lightroom. Nothing has fixed this issue. I cannot add these photos to my collection.

I use this collection to present photos from different folders together for my photography club competition. I've been doing this same operation for years. It appears there is some sort of error with the updated Lightroom.

57 Messages

 • 

860 Points

I have also deleted the collection and recreated. Nothing seemed to help. But I did have one step that I didn't mention that may be the cause:

Did not work:

1. Create the collection.

2. Added an overview logo slide from one of my other collection folders. That is the "1" photo in the folder.

3. Set the sort order to custom

4. Attempt to add other photos. Get the error.

Worked:

1. Delete the collection. 

2. Set the sort order to Custom.

3. Add the photos to this collection

4. Add the logo and move to the front.

I can repeat this process and get the same error.

57 Messages

 • 

860 Points

Thank you, John. I searched for my error and did not find any match whatsoever. Glad my report has found the proper home.

The text on the initial post does not list the proper or exact error code.

Champion

 • 

5.5K Messages

 • 

97.6K Points

It looks like there are at least two different (though similar) error messages produced by the same underlying problem.

42 Messages

 • 

560 Points

Are the sorting issues only related to collections in the latest version of Lightroom?  I have tried to reproduce my previous sorting issues without success - but I'm not using collections in the attempts.

Champion

 • 

5.5K Messages

 • 

97.6K Points

This thread is about errors when trying to use Sort: Custom Order for collections and folders in LR 10.   

1 Message

 • 

60 Points

3 months ago

By accident, I found a fix to this problem. I delete all the images in the Quick Collection. Then turned on another collection to be the targeted collection and then right-clicked on the Quick Collection to set it again as the target collection. Now the B puts selected images into the Quick Collection

4 Messages

 • 

82 Points

3 months ago

occurs when pushing "B" to move a photo to the quick collection. Running Lightroom classic 10.0

Note: This comment was created from a merged conversation originally titled An internal eror occured: attempt to compare nil with string

113 Messages

 • 

2.3K Points

Try setting Quick Collection's sort order to something other than Custom.

4 Messages

 • 

82 Points

Thanks very much. That worked. Interesting that it hadn't occurred before

4 Messages

 • 

94 Points

3 months ago

Just upgraded to LR 10 and started getting this error. Here's my data:

Lightroom Classic version: 10.0 [ 202010011851-ef6045e0 ]
License: Creative Cloud
Language setting: en-US
Operating system: Mac OS 10
Version: 10.15.7 [19H2]
Application architecture: x64
Logical processor count: 8
Processor speed: 2.9 GHz
SqLite Version: 3.30.1
Built-in memory: 16,384.0 MB
Real memory available to Lightroom: 16,384.0 MB
Real memory used by Lightroom: 5,257.3 MB (32.0%)
Virtual memory used by Lightroom: 16,095.4 MB
Memory cache size: 1,103.6MB
Internal Camera Raw version: 13.0 [ 610 ]
Maximum thread count used by Camera Raw: 5
Camera Raw SIMD optimization: SSE2,AVX,AVX2
Camera Raw virtual memory: 546MB / 8191MB (6%)
Camera Raw real memory: 553MB / 16384MB (3%)
Displays: 1) 3360x2100

Graphics Processor Info: 
Metal: AMD Radeon Pro 460

Application folder: /Applications/Adobe Lightroom Classic
Library Path: /Volumes/OWC BACKUP/LightroomCatalogs/LightroomCatalog-OWCBU-v10.lrcat
Settings Folder: /Users/jamesparker/Library/Application Support/Adobe/Lightroom

Installed Plugins: 
1) AdobeStock
2) Aperture/iPhoto Importer Plug-in
3) Aurora HDR
4) DxO PhotoLab 4
5) DxO PhotoLab 4 Importer
6) Envira
7) Export to Photomatix Pro
8) Facebook
9) Flickr
10) HDR Efex Pro 2
11) Helicon Focus Export
12) Imagely
13) jf Zenfolio
14) Luminar 3
15) Luminar 4
16) Luminar Flex
17) Nikon Tether Plugin
18) ON1 Photo RAW 2019
19) ON1 Resize 10
20) ON1 Resize 2019
21) Photolemur 3

4 Messages

 • 

94 Points

Resorting the collection to one of the defaults from "custom" worked as a temp fix. It only started throwing the error after two hours of pulling photos for this particular assignment. 

2 Messages

 • 

72 Points

3 months ago

I have the problem too, changing the order isn't working for me either. 

4 Messages

 • 

94 Points

@artthatsmiles Did it default to custom when it stopped working? Try changing the target collection to anything but "custom"?

2 Messages

 • 

72 Points

Thank you Parker and everyone. I had misunderstood and had changed the source folder to anything but custom initially. When I changed the target collection to anything but custom order, it worked. Thanks for your assistance!

1 Message

 • 

62 Points

2 months ago

A Quick Collection fix that worked for me.  Like others, any attempt to add an item to the quick collection with a B or clicking the little dot at the top right of the image resulted in the error described above.  Changing the order of the collection did not work.  I opened my quick collection and saved all images as a new collection so I would have my picks.  Then I removed all items from the quick collection.  I went back to my original problem collection and was able to add to the Quick Collection with no issues.   

13 Messages

 • 

200 Points

2 months ago

I'm having same problem after installation of Big Sur

13 Messages

 • 

200 Points

2 months ago

I have same problem after moving to Big Sur

3 Messages

 • 

92 Points

2 months ago

I'm getting this error message when trying to add an image to the quick collection. I used it yesterday and it was working fine. I tried to remove and import the image again but got the same error. 

2 Messages

 • 

70 Points

2 months ago

Just today, whenever I try to drag photos into a collection, I get the error  "An internal error has occurred: ?:0: attempt to compare two nil values".

It was working fine half an hour ago, I'd added about 20 photos to the collection, and then it just suddenly stopped working. Eventually, I realised that the problem was with one specific collection, and tried deleting and recreating the collection, which fixed the problem. Just leaving this here in case anyone else has the same problem....

(Lightroom Classic 10.0, Build 202010011851-ef6045e0)

Note: This comment was created from a merged conversation originally titled Adding photos to a collection: "An internal error has occurred: ?:0: attempt to compare two nil values"

Champion

 • 

5.5K Messages

 • 

97.6K Points

Why conversations get merged: 

https://feedback.photoshop.com/conversations/lightroom-classic/lightroom-auto-import-to-folders-organized-by-date/5f5f44f14b561a3d422ab0ba?commentId=5f5f48984b561a3d422bdf45

4 Messages

 • 

108 Points

2 months ago

this bug seems to disappear when the order the pictures in the grid is NOT "personalised"

1 Message

 • 

62 Points

2 months ago

I also installed LrC 10 on my MacBook Pro (Retina, Mid 2015, macOS Mojave 10.14.6) a couple of days ago and I get the same error "?:0: attempt to compare two nil values", but on two completely different occasions:

1.  if I want to add an image to my quick collection. Grid sort changing does not help in my case. 

2. if I work on images stored on my NAS (WD My Cloud EX2 Ultra): Here, it is really bad, I get the error all the time if developing my images. 

Did anyone have the same problem when working on an NAS, too? Any help is highly appreciated!

11 Messages

 • 

174 Points

2 months ago

I experienced the same problem, specifically dragging images to  a Gallery in the SmugMug LR  Classic Plugin. It was recommended that the problem could be fixed by going to Library>View>Sort> Ustinov Order, and change the order. For me it did not work, so I eventually deleted the Gallery, a d reloaded it with success. This has occurred twice, and each time the workaround worked.

Where my problem started was when I deleted some images in the Gallery, and subsequently reloaded them after running the Dng images through the DXO PhotoLab V 4. LR Classic Plugin.

Adobe Support told me that this is a known issue that is being worked upon.

I hope this helps.

Adrian T.

2 Messages

 • 

72 Points

2 months ago

Extremely frustrating for this not to be working.   Please fix the bug.