Import new records (gramps xml) starting after last/highest existing ID?

Gramps 5.1.5 on Ubuntu

When doing an import (Gramps XML) I would like the newly created Records to have an ID starting after the highest already existing ID in the existing family tree.

Because I often sort via IDs column (instead of “Last change”). This also makes an overview easier, when looking at the data later because all imported records will be near to each other. And then cleaning up is easier.

However, I have gaps in my already existing Records because I deleted some erroneous records from time to time.

Example:

I have about 30 Notes – and last Note is ID N0040 (so like 10 “gaps”). So I do not have N0001 for example. Now the import data has a record with N0001.

What I want:

Now all imported data should be imported starting with ID N0041. This happens in most cases.

What happens instead:
But for the gap, the one note for instance is imported “out of order” into N0001. So – ID wise – the imported data is “torn apart” and mixed up with the rest of the existing data

I was able to solve my problem by first closing the gaps in the existings records’s ID ranges using the Reorder Gramps IDs tool:

After having done this I did the import and the newly imported records are now after the existing one and all together.

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