Yes,

GRAMPS does not support merge on import.
So every object has a unique identifier, and if on a second import it is found that that identifier also appears in the imported database, the import is cancelled.

What you did is the correct way of solving this.

I think another option is using xml .gramps format. There import of same identifier does some sort of merge, but I should test it to be certain.
However, an automatic merge is very dangerous: wrong data can result from it.

Note that the identifier is is 12 long 36 to the power 12 possible numbers. The chance of an equal identifier by coincidence is very, very, small.

Note that in the xml, you can edit with a text editor, and can change the identifier (called handle) manually.

Benny


2007/10/24, Ulf Dietrich <ulger@gmx.de>:
"User Information:
===================

I made a new file. After that i import file1.grdb. After this i import the next file2.grdb.
Then this Error stops the Import.

Error Details:
===================

97414: ERROR: DbLoader.py: line 501: Failed to import database.
Traceback (most recent call last):
  File "/usr/share/gramps/DbLoader.py", line 497, in do_import
    importer(self.dbstate.db, filename, self.uistate.pulse_progressbar)
  File "/usr/share/gramps/GrampsDb/_ReadGrdb.py", line 163, in importData
    the_len += check_common_handles(table,other_table,msg)
  File "/usr/share/gramps/GrampsDb/_ReadGrdb.py", line 213, in check_common_handles
    raise HandleError(msg)
HandleError: Person handles in two databases overlap.



User Information:
===================

I find, that one person who is double and remove this. I start the import again with file2.grdb then this Error stops the Import:


Error Details:
===================

349773: ERROR: DbLoader.py: line 501: Failed to import database.
Traceback (most recent call last):
  File "/usr/share/gramps/DbLoader.py", line 497, in do_import
    importer(self.dbstate.db, filename, self.uistate.pulse_progressbar)
  File "/usr/share/gramps/GrampsDb/_ReadGrdb.py", line 163, in importData
    the_len += check_common_handles(table,other_table,msg)
  File "/usr/share/gramps/GrampsDb/_ReadGrdb.py", line 213, in check_common_handles
    raise HandleError(msg)
HandleError: Event handles in two databases overlap.


User Information:
===================

Then I use Repair database -> Remove unused objects and remove them.

After that, the import works.


System Information:
===================

Python version: 2.5.1 (r251:54863, Oct  5 2007, 13:36:32) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
BSDDB version: 4.4.5.2
Gramps version: 2.2.9-1
LANG: de_DE.UTF-8
OS: Linux
Distribution: 2.6.22-14-generic
"


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Gramps-bugs mailing list
Gramps-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-bugs