Restore failed, data common to all exists in db

Michael_GER
Member Posts: 9
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?

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?
0
Answers
-
Hi,
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,
WillyFostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.0 -
Sorry to confuse you, I edited the screenshot for privacy reasons. There are two different company names there.0
-
Hi,
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,
WillyFostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.0 -
Thanks for your ideas. I solved the issue.
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions