We have fixed the root cause of the issue during harvesting in https://github.com/GSA/data.gov/issues/4373, but the bad Geometry data entered before the fix still causes issue when the affected datasets are reindexed (during db-solr-sync or maybe other batch solr index process)
[ckan.lib.search] Indexing just package 'rail-equipment-accidents-accident-causes'...
[ckanext.spatial.search] Geometry not valid JSON Expecting value: line 1 column 1 (char 0), not indexing :: Latitude/Longitude, County, State
[ckanext.geodatagov] Error while rebuild index 3a6edb7b-4432-4722-9d29-22f7867244a9: AttributeError("'NoneType' object has no attribute 'get'")
We have fixed the root cause of the issue during harvesting in https://github.com/GSA/data.gov/issues/4373, but the bad Geometry data entered before the fix still causes issue when the affected datasets are reindexed (during db-solr-sync or maybe other batch solr index process)
How to reproduce
Look at the output of db-solr-sync https://github.com/GSA/catalog.data.gov/actions/runs/6541962407/job/17764268731
Expected behavior
db-solr-sync ignores the error and continues
Actual behavior
db-solr-sync halts.
Sketch
Three appoaches: