Import Text Gramplet (Unrecognized imported Death)

Version: AIO64-5.2.2-r1-f905d14

When importing an XML Gramps file (one person, two events, one citation of one source, two places) importation is fine but the second event (death - décès [fr]) don’t display in person view:


I’ve to open the person editor where you can see two events:

and then open and close (save) the death event.
After this useless action, I can close the person editor and now I can see both events in person view:

For example, this is one of these xml files:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE database PUBLIC "-//Gramps//DTD Gramps XML 1.7.1//EN"
"http://gramps-project.org/xml/1.7.1/grampsxml.dtd">
<database 
  xmlns='http://gramps-project.org/xml/1.7.1/'>
  <places>
    <placeobj handle='0191b8b5-4dc0-7cfc-908e-d9104de204ac' change='1725463872142' type='City' id='P00000'>
      <code>56134</code>
      <pname value='Mohon'/>
    </placeobj>
    <placeobj handle='0191b8b5-4fe9-77a4-a476-c3f72331033d' change='1725463872635' type='City' id='P00001'>
      <code>56134</code>
      <pname value='Mohon'/>
    </placeobj>
  </places>
  <citations>
    <citation handle='0191b8b5-4b8a-797b-84de-1d136c6ef5ef' change='1725463871662' id='C00000'>
      <confidence>2</confidence>
      <page>Fichier 2002, ligne n° 328386. Fiche décès. Audrain, Marie-Therese Marguerite Leontine; Acte n° 19</page>
      <srcattribute type='URL' value='https://deces.matchid.io/id/zi-XZn5ugPPO'></srcattribute>
      <srcattribute type='Consulté le' value='2024-09-04'></srcattribute>
      <sourceref hlink='_fb133413e0f7180ab5cd133636e'/>
    </citation>
  </citations>
  <sources>
    <source handle='_fb133413e0f7180ab5cd133636e' change='1725463871188' id='S00000'>
      <stitle>INSEE. Fichier des décès depuis 1970</stitle>
      <sauthor>INSEE</sauthor>
    </source>
  </sources>
  <header>
    <researcher>
      <resaddr>48</resaddr>
      <rescountry>France</rescountry>
      <respostal>93</respostal>
      <resemail>patrice</resemail>
      <rescity>Le Raincy</rescity>
      <resname>Legoux, Patrice</resname>
      <resphone>+336</resphone>
    </researcher>
    <created date='2024-09-03' version='AIO64-5.2.2-r1-f905d14'/>
  </header>
  <people>
    <person handle='0191b8b5-5640-735f-aa24-045c253b4400' change='1725463874170' id='I00000'>
      <gender>F</gender>
      <name type='Birth Name'>
        <surname>Audrain</surname>
        <first>Marie-Therese Marguerite Leontine</first>
      </name>
      <citationref hlink='0191b8b5-4b8a-797b-84de-1d136c6ef5ef'/>
      <eventref role='Primary' hlink='0191b8b5-51f9-78b7-bfc3-e8b7dcee8295'></eventref>
      <eventref role='Primary' hlink='0191b8b5-5426-75d8-8231-687192866a76'></eventref>
    </person>
  </people>
  <events>
    <event handle='0191b8b5-51f9-78b7-bfc3-e8b7dcee8295' change='1725463873138' id='E00000'>
      <dateval val='1936-05-05'/>
      <citationref hlink='0191b8b5-4b8a-797b-84de-1d136c6ef5ef'/>
      <place hlink='0191b8b5-4dc0-7cfc-908e-d9104de204ac'/>
      <type>Birth</type>
    </event>
    <event handle='0191b8b5-5426-75d8-8231-687192866a76' change='1725463873636' id='E00001'>
      <dateval val='2002-07-10'/>
      <citationref hlink='0191b8b5-4b8a-797b-84de-1d136c6ef5ef'/>
      <place hlink='0191b8b5-4fe9-77a4-a476-c3f72331033d'/>
      <type>Death</type>
    </event>
  </events>
</database>

I’ve generated it from this URL matchID - Moteur de recherche des décès (French deaths national database) using an automation I’ve made [fr].

A bug in that import gramplet ?

This comment is for the Text import, not the XML or VCARD portion, but it notes an interesting limitation.

Text import only allows ONE event of any Type per Person row of import.

It allows multiple Event columns per row (Birth, Baptism, Occupation, Residence, Death, Burial)… but only one instance of each type per Row.

But you can add additional Person rows that reference the same Person ID (all the name fields can remain NULL to simplify input) for each additional Event of that type.

When I imported, it came in with 2 events for the person

Those XML chunks are in a strange order. The <header> chunk is after the <places>, <citations>, and <sources> chunks.

And the <events> chunk is after the <people>

I thought that the secondary objects should to be be before the chunk that references its handles. Maybe not, since Notes are secondary objects for every type of record but they can include text linked to objects. (So taht would be a circular order requirement)

So, should the order be:

<header>
<places>
<repositories>
<sources>
<citations> 
<events>
<people>
<families>

No issue with that unordered xml. It comes like this after json to xml transformation but tag order doesn’t matter

but do you see them both in person view ?

Just re-tested your XML. You are right.

The Primary role was recognized for the Birth but not for the Death.

I had to use the Person Editor. Just had to open it and re-commit via the OK button. Canceling the Person Editor did NOT correct the ignored Death Event.

Then the Death was recognized as a Primary event for the person. Now the Death shows in the People views

A bug report should be filed on this XML import idiosyncrasy.

In a related question about Import Text…

I imported a CSV with 7 rows of people into a new Tree and the Import arbitrarily made the 3rd row Person into the Active Person.

I think it might be related to the last line which is the adding a child. That Family has her as the mother. (But the previous Marriages chunk would have already added her. So there were 3 more Family import actions after that.)

How can I predict where the Active Person focus will be after an Import?

1 Like

Done: 0013420: [Text Import gramplet] 1 person, 2 events XML import with doesn’t display Death event

1 Like