I made a backup in database #1 with the following parameters:
Restore in database #2 aborts at about 2/3 of the key generation process with the following error:
There are already companies in DB#2 and when we did this last week everything worked fine.
Objects of both databases are equal, license is ok and there is no table >= 50000 with linked object property set to 'Yes'.
Version: NAV W1\5442369 (5.0 SP1), Win Server 2008 R2, SQL Server 2008 R2
Any idea?
Answers
When I look at your backup window, it shows 2 companies 'E', how is that possible? You should not be able to have 2 with the same company names in the database.
That might be your problem. What I would try, take a full backup first, then delete the one 'E' company you don't want to backup. When that is done, backup the company you want and try to restore it into your new database.
Hope this helps
Regards,
Willy
Ok, that explains it. Can you check if you have the tables twice in your database?
I've seen it happen when a native restore fails. You will have your tables in the normal range plus all the tables again in the 1000000000 range?
The bad part is, I've never been able to repair that situation.
Thanks,
Willy
I had the tables twice in the database because of the aborted restore. But that was not the problem. I cleaned it and deleted the company.
In this case the problem was an error in the "Objects" table. To correct this I compiled all objects in the database and all went good.
Found a workaround while looking for the answer:
I created a new database and restored a backup of the "Master" company with application objects and global data. After that I exported all table objects from the target database and restored it in the new database. Now I made a backup of this company without application objects and global data, restored it to the "real" target database and it worked, too.