# Problems limiting sources on GEDCOM export

**URL:** <https://gramps.discourse.group/t/problems-limiting-sources-on-gedcom-export/7947>\
**Category:** Help\
**Tags:** gedcom\
**Created:** [July 13, 2025, 3:43pm UTC](https://gramps.discourse.group/t/problems-limiting-sources-on-gedcom-export/7947 "2025-07-13T15:43:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![uli22](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/uli22/32/175_2.png) [@uli22](https://gramps.discourse.group/u/uli22)\
**Post date:** [July 13, 2025, 3:43pm UTC](https://gramps.discourse.group/t/problems-limiting-sources-on-gedcom-export/7947/1 "2025-07-13T15:43:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Davesellers](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesellers/32/1457_2.png) [@Davesellers](https://gramps.discourse.group/u/Davesellers)\
**Post date:** [July 13, 2025, 8:45pm UTC](https://gramps.discourse.group/t/problems-limiting-sources-on-gedcom-export/7947/2 "2025-07-13T20:45:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![uli22](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/uli22/32/175_2.png) [@uli22](https://gramps.discourse.group/u/uli22)\
**Post date:** [July 14, 2025, 6:00am UTC](https://gramps.discourse.group/t/problems-limiting-sources-on-gedcom-export/7947/3 "2025-07-14T06:00:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Davesellers](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesellers/32/1457_2.png) [@Davesellers](https://gramps.discourse.group/u/Davesellers)\
**Post date:** [July 14, 2025, 12:36pm UTC](https://gramps.discourse.group/t/problems-limiting-sources-on-gedcom-export/7947/4 "2025-07-14T12:36:45Z")

</div>

It is a menu item in the [Reference Filter](https://gramps-project.org/wiki/index.php?title=Gramps_6.0_Wiki_Manual_-_Manage_Family_Trees#Reference_Filter) drop down.  
“Do not include records not linked to selected person”

---

<div class="post-metadata">

**Author:** ![uli22](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/uli22/32/175_2.png) [@uli22](https://gramps.discourse.group/u/uli22)\
**Post date:** [July 16, 2025, 10:21am UTC](https://gramps.discourse.group/t/problems-limiting-sources-on-gedcom-export/7947/5 "2025-07-16T10:21:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [August 15, 2025, 10:22am UTC](https://gramps.discourse.group/t/problems-limiting-sources-on-gedcom-export/7947/6 "2025-08-15T10:22:32Z")

</div>

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