Strange Navision Encounter. (BCK/Rest/Upgrade issue)

jonsan21
Member Posts: 118
Hi,
I have a very, very strange encounter with Navision 3.7 today.
Ok, here's the story.
I have a customer with SQL2000, Navision 3.7. What happen is, they have to migrate their SQL2000 to another server. So I backup (Navision backup) from the old SQL2000, and restore it (Navision restore) to the new SQL2000. I restore it to two database (a LIVE - DB1 and a backup - DB2)
A week later, which is today, I want to upgrade this customer database to 4.0. So I run another backup (Navision backup) on the new SQL2000. I have already prepared the merged objects, and test the upgrade on my environment.
Here comes the strange thing.
Problem 1.
When trying to backup the DB1 (Navision backup) I encountered an error which says a field (Tax Liable) in the G/L Entry table contains invalid data (the field type is boolean, SQL bit - but I use SQL query and see that a particular entry, has the value of 2 in this field!!)
I checked through the other database restored a week ago (DB2), and found that particular entry has the value of 0 in the Tax Liable field.
So confidently I manually changed the value to 0. Just to note, the G/L Entry was a system generated entry, and belongs to a Purchase Invoice.
Problem 2.
When re-trying to backup the DB1, I encountered another error, which says a field (can't remember what field, if I'm not wrong is Shipment Date) in the Sales Invoice Line table contains invalid data (a date with a fraction)
Problem 3.
After 'solving' problem 1, I ran the DB Test Maximum, and found that there is an inconsistency on the Sales Invoice Line table.
Here's the dump:
Error: The following SQL Server error(s) occurred: [Microsoft][ODBC SQL Server Driver][SQL Server]Table error: Object ID 306100131, Index ID 5. Keys out of order on page (3:189337), slots 103 and 104.
Error: The following SQL Server error(s) occurred: [Microsoft][ODBC SQL Server Driver][SQL Server]CHECKTABLE found 0 allocation errors and 1 consistency errors in table '(Live) Digital Asia$Sales Invoice Line' (object ID 306100131).
Error: The following SQL Server error(s) occurred: [Microsoft][ODBC SQL Server Driver][SQL Server]repair_rebuild is the minimum repair level for the errors found by DBCC CHECKTABLE (DANAV37SG.dbo.(Live) Digital Asia$Sales Invoice Line ).
Alright, that's all my ramblings for now. I am doing SQL backup in DB1, and try to restore to another DB and doing the test on that again since DB1 is a LIVE database and the users are using it. Will try to run the Repair_Rebuild on that DB.
Any opinion? suggestion? input? anything?
Rgds,
Jon.
I have a very, very strange encounter with Navision 3.7 today.
Ok, here's the story.
I have a customer with SQL2000, Navision 3.7. What happen is, they have to migrate their SQL2000 to another server. So I backup (Navision backup) from the old SQL2000, and restore it (Navision restore) to the new SQL2000. I restore it to two database (a LIVE - DB1 and a backup - DB2)
A week later, which is today, I want to upgrade this customer database to 4.0. So I run another backup (Navision backup) on the new SQL2000. I have already prepared the merged objects, and test the upgrade on my environment.
Here comes the strange thing.
Problem 1.
When trying to backup the DB1 (Navision backup) I encountered an error which says a field (Tax Liable) in the G/L Entry table contains invalid data (the field type is boolean, SQL bit - but I use SQL query and see that a particular entry, has the value of 2 in this field!!)
I checked through the other database restored a week ago (DB2), and found that particular entry has the value of 0 in the Tax Liable field.
So confidently I manually changed the value to 0. Just to note, the G/L Entry was a system generated entry, and belongs to a Purchase Invoice.
Problem 2.
When re-trying to backup the DB1, I encountered another error, which says a field (can't remember what field, if I'm not wrong is Shipment Date) in the Sales Invoice Line table contains invalid data (a date with a fraction)
Problem 3.
After 'solving' problem 1, I ran the DB Test Maximum, and found that there is an inconsistency on the Sales Invoice Line table.
Here's the dump:
Error: The following SQL Server error(s) occurred: [Microsoft][ODBC SQL Server Driver][SQL Server]Table error: Object ID 306100131, Index ID 5. Keys out of order on page (3:189337), slots 103 and 104.
Error: The following SQL Server error(s) occurred: [Microsoft][ODBC SQL Server Driver][SQL Server]CHECKTABLE found 0 allocation errors and 1 consistency errors in table '(Live) Digital Asia$Sales Invoice Line' (object ID 306100131).
Error: The following SQL Server error(s) occurred: [Microsoft][ODBC SQL Server Driver][SQL Server]repair_rebuild is the minimum repair level for the errors found by DBCC CHECKTABLE (DANAV37SG.dbo.(Live) Digital Asia$Sales Invoice Line ).
Alright, that's all my ramblings for now. I am doing SQL backup in DB1, and try to restore to another DB and doing the test on that again since DB1 is a LIVE database and the users are using it. Will try to run the Repair_Rebuild on that DB.
Any opinion? suggestion? input? anything?
Rgds,
Jon.
Rgds,
Jon.
Jon.
0
Comments
-
[Topic moved from Navision forum to SQL General forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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