Get error message every time I open Gramps database

Every time I open my current Gramps database (Win 11,GrampsAIO64-6.0.6), I get this message, and I have to unlock the database and then run the Check and Repair Tool to use the database.

Older databases created and used solely in 6.0.5 do not have this problem when I open them in 6.0.6.

26410: ERROR: grampsapp.py: line 187: Unhandled exception
Traceback (most recent call last):
File “C:\Program Files\GrampsAIO64-6.0.6\gramps\gui\viewmanager.py”, line 967, in view_changed
self.__change_page(page_num)
File “C:\Program Files\GrampsAIO64-6.0.6\gramps\gui\viewmanager.py”, line 983, in __change_page
self.active_page.set_active()
File “C:\Program Files\GrampsAIO64-6.0.6\gramps\gui\views\listview.py”, line 317, in set_active
NavigationView.set_active(self)
File “C:\Program Files\GrampsAIO64-6.0.6\gramps\gui\views\navigationview.py”, line 156, in set_active
self.update_mru_menu(hobj.mru, update_menu=False)
File “C:\Program Files\GrampsAIO64-6.0.6\gramps\gui\views\navigationview.py”, line 449, in update_mru_menu
name, _obj = navigation_label(self.dbstate.db, nav_type, items[index])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\GrampsAIO64-6.0.6\gramps\gen\utils\db.py”, line 320, in navigation_label
obj = get_method(handle_or_obj)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\GrampsAIO64-6.0.6\gramps\gen\db\generic.py”, line 1472, in get_person_from_handle
return self._get_from_handle(PERSON_KEY, Person, handle)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\GrampsAIO64-6.0.6\gramps\gen\db\generic.py”, line 1460, in _get_from_handle
raise HandleError(f"Handle {handle} not found")
gramps.gen.errors.HandleError: Handle f7c312522d17a5c51913324cf4c not found

Seem you are doing the right thing as

The HandleError is an “Error used to report wrong database handle errors”

Please stop and backup your database, then run the “Check and Repair Database” tool ( Tools->Family Tree Repair->Check and Repair Database… )

https://gramps-project.org/wiki/index.php/Gramps_6.0_Wiki_Manual_-_Tools#Check_and_Repair_Database

Have you been merging alot?

Maybe try exporting the full familytree and importing it into a new familytree?

I did what you suggested - exported as an XML into a *.gramps file, then imported that into a brand new blank database. Got the same error as above.

I then exported that database into another *.gramps file, then imported that into an existing blank database from which I had previously deleted all records.

Everything now seems OK.

Thanks for your helpful suggestion.

1 Like

Getting back to Gioto on his question (“Have you been merging alot?”), the answer is Yes. I was routinely using RootsMagic 11 as a conduit to bring FamilySearch data into my Gramps database. I would first export selected People from RM into a GED, then import the GED directly into my main Gramps database. I would then merge the duplicated People within Gramps as necessary.

I’m now thinking that the better approach would have been to import the GED into a new empty Gramps database, and then import the records via XML into my main Gramps database.

I wonder whether doing multiple merges by themselves within Gramps causes the “wrong database handle errors” message, or whether something “bad” happens by importing records via the direct RM-GED-Gramps route. Any insights would be appreciated.

1 Like

Merging a person with the home person could possibly cause a problem. Perhaps after a merge the home person points to the handle that has been removed.

1 Like