Skip to main content
DanielB_17
Participating Frequently
Oct 23, 2020 4:33 PM UTC
Answered

On Add to Collection: ?:0: attempt to compare two nil values

Greetings.

 

I recently updated to the 10.0 release and have started receiving this error in some but not all cases.

 

"?:0: attempt to compare two nil values"

 

I am trying to add photos to various collections and occasionally this error pops up in a dialog and fails to add. I can add other photos to the same collections. I can also add the same photos to other collections. But certain specific combinations of photo and collection give the error.

 

  • I have Optimized my Catalog, restarted Lr, and restarted my computer.
  • The problem feels like it os occuring more often as I go.
  • It seems somehow correlated with trying to add to several different collections whiling changing my selection in between, but... I haven't been able to nail down a repeatable pattern.

 

I would very much appreciate any assistance. I do see a reference to this error in the forums, but from 2016 for a very different context, and the solution relies on dead links.

This topic is closed to new replies. Start a new post to keep the conversation going.
johnrellis
johnrellisCorrect answer
Legend
Oct 24, 2020 4:41 PM UTC

Also, as a workaround, select the target (destination) collection, do the menu command View > Sort, and choose a sort order other than Custom Order.

 

[Use the blue reply button under the first post to ensure replies sort properly.]

23 replies

johnrellis
Legend
Nov 20, 2020 5:57 AM UTC

Another workaround that's helped some: Create a brand new collection.

 

[Use the blue reply button under the first post to ensure replies sort properly.]

Translate
Participant
Nov 18, 2020 7:53 PM UTC

Unfortunately I didn't work for me. I changed the destination (target destination) and the sort order but with no success. Yesterday it was working fine and now all of sudden this. I uninstalled LR and installed it again without success. I hope there is a fix soon because this is super annoying. I will try it on another Mac, maybe there is works.

Translate
Participant
Nov 15, 2020 8:26 PM UTC

Having the same problem as well after the update, the work around worked out for me. I don't usually change the sort order off Custom, so this didn't occur to me.  Thanks for a temporary solution. 

 

Adobe, please fix!

Translate
Participant
Nov 15, 2020 7:59 PM UTC

Thanks. That worked for me. 😉

Translate
Known Participant
Nov 12, 2020 3:05 AM UTC

Changing the target folder from Custom order to date order fixed this for me.

 

Paul

Translate
Participating Frequently
Nov 13, 2020 2:28 PM UTC

Changing the target folder from Custom sort order to something else worked for me too. But I usually have my Collections in Custom order, so this is an annoying glitch.

Translate
Participant
Nov 13, 2020 3:04 PM UTC
I usually have my collections in Custom sort order also, so find this
glitch annoying too.
Translate
Participant
Nov 5, 2020 8:10 PM UTC

...just got the same problem...  "?:0: attempt to compare two nil values"...

seems like adobe itself has to fix it...got no solution by myself...

Translate
Known Participant
Nov 4, 2020 4:39 AM UTC

I'm having the same issue, starting tonight, and a google search led me here. Changing the target collection sort order to something other than Custom fixed the problem for me. Very frustrating! Thank you for supplying a temporary workaround johnrellis!

Translate
Participant
Nov 11, 2020 10:32 PM UTC

This has been bugging me too, and the workaround you have suggested does seem to work.  Mine happened after update.  Wish I'd searched more thoroughly earlier.  I just found this today.  Would be nice for Adobe to send out a notice of this problem and the workaround.

Translate
johnrellis
johnrellisCorrect answer
Legend
Oct 24, 2020 4:41 PM UTC

Also, as a workaround, select the target (destination) collection, do the menu command View > Sort, and choose a sort order other than Custom Order.

 

[Use the blue reply button under the first post to ensure replies sort properly.]

Translate
DanielB_17
Participating Frequently
Oct 24, 2020 6:24 PM UTC

Excellent observation!! I didn't even realize some of the collections had somehow been set to custom order. I pretty much never do that on purpose so it never occurred to me to check.

 

This is almost as good as a fix for my workflow 🙂

Translate
johnrellis
Legend
Oct 24, 2020 12:06 AM UTC

A number of people have reported this error when adding photos to collections after updating to LR 10.  Please add your constructive opinion to the bug report:

https://feedback.photoshop.com/conversations/lightroom-classic/lightroom-classic-when-trying-to-add-files-to-collections-i-get-this-error-0-attempt-to-compare-two-nil-values/5f9091ea35f40c2520b9ecc4

 

 and be sure to click Like and Follow at the bottom of the first post. That will make it a little more likely that Adobe will prioritize a fix, and you'll be notified when the bug's status changes.

 

[Use the blue reply button under the first post to ensure replies sort properly.]

Translate
GoldingD
Legend
Oct 23, 2020 6:26 PM UTC

Please post your System Information as Lightroom Classic (LrC) reports it. In LrC click on Help, then System Info, then Copy. Paste that information into a reply. Please present all information from first line down to and including Plug-in Info. Info after Plug-in info can be cut as that is just so much dead space to us non-Techs.

 

 

 

 

 

Translate
DanielB_17
Participating Frequently
Oct 23, 2020 6:32 PM UTC

Lightroom Classic version: 10.0 [ 202010011851-ef6045e0 ]
License: Creative Cloud
Language setting: en
Operating system: Mac OS 10
Version: 10.15.7 [19H2]
Application architecture: x64
Logical processor count: 16
Processor speed: 3.6 GHz
SqLite Version: 3.30.1
Built-in memory: 32,768.0 MB
Real memory available to Lightroom: 32,768.0 MB
Real memory used by Lightroom: 2,034.3 MB (6.2%)
Virtual memory used by Lightroom: 11,115.9 MB
Memory cache size: 103.0MB
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: 75MB / 16383MB (0%)
Camera Raw real memory: 78MB / 32768MB (0%)
Displays: 1) 5120x2880, 2) 1920x1200

Graphics Processor Info:
Metal: AMD Radeon Pro 580X

 

Application folder: /Applications/Adobe Lightroom Classic
Library Path: /Users/berdine/Pictures/Lightroom/DPB Primary LR Catalog-v10.lrcat
Settings Folder: /Users/berdine/Library/Application Support/Adobe/Lightroom

Installed Plugins:
1) AdobeStock

 

Translate
GoldingD
Legend
Oct 23, 2020 7:15 PM UTC

Just the one plugin?

 

Plugins can be buggy

 

Translate