Problems limiting sources on GEDCOM export

gramps 6.0.3 AIO on win 11

Hi
I am struggling with gedcom export, either gedcom or gedcom extensions.
There are 2 problems
first
When I export a subset of my persons to gedcom all sources in the database are included, not only those that are linked to an event. So the gedcom will be too big and also I dont want to publicate all sources.
Fortunately lastly I have a tool to strip all unlinked sources from the exported file. But it would be nice if that was adressed during export. The bug appeared already in gramps 4 and there was a patch but in gramps 5.2 and 6.0.3 the bug is there again.

second
At the moment I try to export to gedcom using a certain hierarchical Filter_1 “Persons with Events that match Eventfilter” (which then is a Filter_2: Events that match some sources). This works, but when I combine this Filter_1 in a new Filter_3 with spouses of Filter_1 and another Parents of Filter_1 the export stops and gramps is blocked with following error: 6.0.3\gramps\gen\filters\rules_matchessourcefilterbase.py", line 76, in apply_to_one
for citation_handle in object.citation_list:
^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘citation_list’

All these steps and Filters worked in gramps 5.2
The Filter actually work on Person view. They dont work on gedcom export.
I have to close down gramps after that and restart.

Help is highly apreciated as I need the export for updating a community genealogical project.
cheers
Uli

In the gedcom window where you select your filter, the option below should be selected to “only include notes linked to exported persons” or something like that. Not in front of gramps right now.

If your filter works in people view, add a tag to those records, then select that tag for the export.

Thank you Dave.
Your workaround using a Tag helped me on my second issue. Perhaps my filter using 3 rules in one step is too complicated.
But there is no option to restrict notes or sources either in “gedcom export” or “enhanced gedcom export”, at least I dont find one.
cheers
Uli

It is a menu item in the Reference Filter drop down.
“Do not include records not linked to selected person”

Hi Dave,
I finally found the option in the export assistant and it did the job at least to an acceptable extend. It removed a lot of unlinked sources, but there are still some in the exported gedcom. I will have to track this further.
Thanks for the help
cheers Uli

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.