Skip to main content
DanielB_17
Participating Frequently
October 23, 2020
Answered

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

  • October 23, 2020
  • 11 replies
  • 4728 views

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 has been closed for replies.
Correct answer johnrellis

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.]

11 replies

AxelMatt
Community Expert
Community Expert
October 23, 2020

Do you have a plugin named Logitech Options? If yes please deactivate tihis plugin and try again.

 

Please take a look here:

https://community.adobe.com/t5/lightroom-classic/lr-classic-9-1-error-quot-an-internal-error-has-occurred-0-attempt-to-index-a-nil-value-quot/td-p/10816585?page=1

https://community.adobe.com/t5/lightroom-classic/lightroom-classic-quot-an-internal-error-has-occurred-0-attempt-to-index-field-quot-while-exporting/td-p/11206048?page=1

 

To insert screenshots, please use in the future the "Insert Photos" icon in the toolbar, so that we don't have to download them. Thank you.

My System: Intel i7-8700K - 64GB RAM - NVidia Geforce RTX 3060 - Windows 11 Pro 25H2 -- LR-Classic 15 - Photoshop 27 - Nik Collection 8 - PureRAW 5 - Topaz Photo
DanielB_17
Participating Frequently
October 23, 2020

Thanks.

 

I do not have the Logitech Options plugin installed, but I *do* use the Logitech Options App for my mouse. I searched around and did find the plugin file (LogiOptionLr.lrplugin) on my system, but Lr does not list it in the Plugin manager.

 

I did have 2 3rd party plugins which I have disabled and restarted Lr, which did not help.

 

At this point I tried adding, enabling, disabling, and removing the Logitech plugin, just in case it was somehow stealth-installed or had left residuals even though I never knew it existed and never installed it on purpose... Alas, this did not help either.

 

Anything else I can try? The Logitech thing seems like quite a coincidence, but the normal solution isn't helping me...

GoldingD
Legend
October 23, 2020
I tried adding, enabling, disabling, and removing the Logitech plugin, just in case it was somehow stealth-installed 

 

Tyically gets installed durung mouse/keyboard druver update.