Skip to main content
nhunsperger
Participant
October 11, 2018
Answered

Lightroom Classic: Library Filter using Location Metadata does not reflect removed location metadata

  • October 11, 2018
  • 19 replies
  • 1113 views
When adding/changing location metadata on images, the Library Filter location columns are updated to reflect this change.  However, when removing location metadata (sublocation, city, possibly others) from an image with GPS coordinates, the Library Filter location columns continue to show the previous value.  Removing this metadata from images without GPS coordinates results in the Library Filter correctly updating to "Unknown Location".

In the screenshot below, I had set this image to have a sublocation of "Out of date".  I then erased the sublocation in the metadata pane.  As you can see, The Library Filter is filtering to only show images with a location of "Out of date", yet that field is empty in the selected image.


If I then change the sublocation to a non-empty value, the Library Filter correctly updates itself.


This is happening on Lightroom Classic 7.5.



It appears to me that the problem is that Lightroom is not correctly updating the AgHarvestedIptcMetadata table when clearing the location data.  Below is a SQL dump of this table when adding/clearing sublocation on two new images (one with GPS data, one without).  This dump and the above screenshots are from different tests.

Initial state:
sqlite> select * from AgHarvestedIptcMetadata where image in (570455,570463);
572347|570455|||||||unset|-1.0||
572457|570463|||||||gps|-1.0||

After setting sublocation to "abc" in Lightroom:
sqlite> select * from AgHarvestedIptcMetadata where image in (570455,570463);
572347|570455|||||||unset|-1.0|958442|
572457|570463|||||||gps|-1.0|958442|

After clearing sublocation in Lightroom:
sqlite> select * from AgHarvestedIptcMetadata where image in (570455,570463);
572347|570455|||||||unset|-1.0||
572457|570463|||||||gps|-1.0|958442|

Notice how the image without GPS coordinates was reset to the initial state, yet the one with GPS coordinates retained the sublocation data (958442 is the ID given to the location).

If I manually null out the sublocation on this entry in the DB, Lightroom immediately shows the expected "Unknown Location" in Library Filter:

sqlite> update AgHarvestedIptcMetadata set locationRef=null where image in (570463);
sqlite> select * from AgHarvestedIptcMetadata where image in (570455,570463);
572347|570455|||||||unset|-1.0||
572457|570463|||||||gps|-1.0||

Obviously, I don't want to be manually editing my catalog.  But I would like to be able to clear out location data after incorrectly setting it, and still have Library Filter work correctly.
This topic has been closed for replies.
Correct answer Rikk Flohr_Photography

I am able to duplicate what you are seeing.  I will log a bug with the team. 

Thank you for your report. 

19 replies

Inspiring
May 23, 2021


In my database according to the Filter panel, I have 7,450 images with n/a as the Location (I have a lot of scanned documents). Each of these should have n/a in the City etc field as well, but I noticed a few errors.

On selecting one entry, I found that these cases showed no value in the Metadata Panel Location field. The image below shows all 14 images selected, and the Metadata Panel for Location is Null, despite what the Filter shows.

I tried deleting the "empty" field, this made no difference. I tried Saving Metadata, no difference.

Next I decided to enter a value (I used MZX to keep it in the same filter view), and the filter changed to show 14 records with MZX, and the n/a count dropped by 14. When I deleted the "MZX" however, the filter panel remained as it was ie showing 14 records with "MZX", and the n/a at 7436!

johnrellis
Legend
April 29, 2021

Even though the other conversation had been marked Acknowledged (meaning it was being tracked internally by Adobe), I noticed that it didn't have an internal tracking number assigned, probably an oversight.   I've verified that the tracking number assigned to your report is now assigned to this merged thread.

Participating Frequently
April 29, 2021

OK - I see why they were merged. I initially thought the 2018 post was only about photos with GPS coordinates.

However, it is concerning that a bug report with very clear, reproducible steps has not been resolved 3 years on 😞

Participating Frequently
April 27, 2021

Thank you Rikk. Much appreciated 🙂

Rikk Flohr_Photography
Community Manager
April 27, 2021

I am able to duplicate what you are seeing.  I will log a bug with the team. 

Thank you for your report. 

Rikk Flohr: Adobe Photography Org
Participating Frequently
April 27, 2021
  • The Location Columns library filter preset shows Unknown Country/Region, Unknown State/Province etc for photos with no location metadata.
  • When metadata is added, the locations are shown in the Location Columns filter preset.
  • BUT, when location metadata is removed, the Unknown label is NOT shown again (instead continues to show the location that has been deleted), unless all 4 location fields (Country/Region, State/Province, City, and Sublocation) are empty.

I'm not sure when this behaviour started, but it used to work perfectly. First noticed yesterday in a catalogue of 30,000+ images, but have repeated in a new catalogue with just two photographs ... one DNG, one JPEG.

10.2 Release. macOS Big Sur 11.2.3.

johnrellis
Legend
August 10, 2019
This modified workaround worked for both Ian and me:

1. Back up your catalog.

2. Use the Find Uncommitted Locations command of the Any Tag plugin to find all photos with italicized locations added by address suggestion.

3. Select at least two of those photos and do the Commit Locations command of the plugin.

4. With all those photos still selected, clear each of the location fields in the Metadata panel. 

5. Do Edit > Select None.
ianbutty
Known Participant
August 9, 2019
I have this problem and a related problem.  I have Address lookup turned off.  At some point it must have been switched on because LR has populated the country/state/location fields via "Address Lookup".  I can't get rid of this - in some cases I don't want that information in there (eg the image was a macro shot and the location information is irrelevant) and in other cases the location field is wrong.

 I know I can type my own values into the field but how do I delete the 'italicised' version because as soon as I click on the field it disappears but then reappears when I click away.

I've created a short screen capture to show what the problem is (John R Ellis suggested a workround with Any Tag but event that doesn't work the video also shows that failing)

Problem with Lightroom Address Lookup - YouTube

alanterra
Inspiring
November 24, 2018
Per John Ellis' request, I have "me too'd" this and this here are the first 10 lines of my System Info panel:

Lightroom Classic version: 8.0 [ 1193777 ]License: Creative Cloud
Language setting: en-US
Operating system: Mac OS 10
Version: 10.14.0 [18A391]
Application architecture: x64
Logical processor count: 8
Processor speed: 4.0 GHz
Built-in memory: 32,768.0 MB
Real memory available to Lightroom: 32,768.0 MB