4.00 database restore in new NAV 2009 SP1 SQL database

Roelof
Member Posts: 377
I'm try to restore a 4.00 database backup in a new NAV 2009 SP1 SQL database. During the restore I'm receiving the following message:
'Item unit of Measure table contains a value in a code field that cannot be used with Micorosoft Dynamics NAV Classic. Field: Item No., Value: WP BIJOUX MP HEADERS
(The Item no. value seems to be a valid value. It doesn't exceed the 20 characters)
Any ideas?
'Item unit of Measure table contains a value in a code field that cannot be used with Micorosoft Dynamics NAV Classic. Field: Item No., Value: WP BIJOUX MP HEADERS
(The Item no. value seems to be a valid value. It doesn't exceed the 20 characters)
Any ideas?
Roelof de Jonghttp://www.wye.com
0
Comments
-
This isn't a field length issue, its a collation issue.
Try going to the collation settings (File->Database->Alter -> Collation tab) and untick "Validate Code Page".
if that works you need to find out which character in "WP BIJOUX MP HEADERS" is not acceptable. My guess would be that one of the <spaces> is not really a space. Or it could be you imported this item via SQL or ODBC and one of the characters is not as it seems. To test this, copy paste it into the Description field, and see if the Search description is identical.David Singleton0 -
Yes, I found the problem. You were right. The 'Item No.' in the Item Unit of Measure record was corrupt due to an import. I fixed it and will create a new backup to restore. Cross my fingers.Roelof de Jonghttp://www.wye.com0
-
Be aware that if there is one there maybe more.
You can write some simple code to locate the errors and fix them. Just crate a reprot that scans the table and add a line like:If "Item No." = UPPERCASE("Item No.") then currreport.skip; // the lines that print are the errors. // or to fix them "Item No." := UPPERCASE("Item No."); modify;
Beware though that this is not a good way to fix them, since they will no longer link to the Item table correctly.David Singleton0 -
Thanks for the code. That would work.
Yes, I double checked for more item nos. It looked like there was only one. So, I think I'm fine. But thanks for the note.Roelof de Jonghttp://www.wye.com0
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