# GEDCOM export excludes all non-primary events

**URL:** <https://gramps.discourse.group/t/gedcom-export-excludes-all-non-primary-events/6954>\
**Category:** Help\
**Created:** [February 8, 2025, 9:00am UTC](https://gramps.discourse.group/t/gedcom-export-excludes-all-non-primary-events/6954 "2025-02-08T09:00:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![csam](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/csam/32/5361_2.png) [@csam](https://gramps.discourse.group/u/csam)\
**Post date:** [February 8, 2025, 9:00am UTC](https://gramps.discourse.group/t/gedcom-export-excludes-all-non-primary-events/6954/1 "2025-02-08T09:00:55Z")

</div>

Continuing the discussion from [Does the Gedcom export save all events?](https://gramps.discourse.group/t/does-the-gedcom-export-save-all-events/4023):

The GEDCOM export source file contains this statement:  
(file site-packages/gramps/plugins/export/exportgedcom.py)

```python
        # if the event role is not primary, skip the event.
        if role != EventRoleType.PRIMARY:
            return

```

I have uncommented this statement. GEDCOM export still runs fine.  
I have imported the GEDCOM file into MacFamilyTree without any problems.

I really wonder why this statement is in the code. An export should export as much as possible. It’s the importing application that should filter out data, that it cannot handle.

See also [0012966: GEDCOM export doesn't include all birth or death events. - Gramps - Bugtracker – Free Genealogy Software](https://gramps-project.org/bugs/view.php?id=12966)

---

<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:** [March 10, 2025, 9:01am UTC](https://gramps.discourse.group/t/gedcom-export-excludes-all-non-primary-events/6954/2 "2025-03-10T09:01:33Z")

</div>

Closed on March 10, 2025, 9:01am UTC

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