There is no constraint in gnucash to avoid creating two top-level accounts with the same name while there is such a constraint for two sub-accounts. Should the first be allowed ? Is there some reason to allow this ? regards sebastien