Table contains a value in a Code field that cannot be used

eYe
Member Posts: 169
Hi,
I am trying to restore a client's db to NAV2009 SP1 SQL. I suspect the created a vendor with the special characters in the Name field, so that then updated the Search Name field.
Backup was made and now when restoring it I get the following:
So I changed the Search Name to Text, hoping that I will be able to restore and then change it back to code afterwards, but even with the field set to Text, I still get this message.
I am trying to restore a client's db to NAV2009 SP1 SQL. I suspect the created a vendor with the special characters in the Name field, so that then updated the Search Name field.
Backup was made and now when restoring it I get the following:
The Vendor table contains a value in a Code field that cannot be used with Microsoft Dynamics NAV Classic: Field: Search Name Value: COMPAÑõA
So I changed the Search Name to Text, hoping that I will be able to restore and then change it back to code afterwards, but even with the field set to Text, I still get this message.
Kind Regards,
Ewald Venter
Ewald Venter
0
Comments
-
How was the backup made?0
-
Through NAV client, .fbk fileKind Regards,
Ewald Venter0 -
The backup DB was also on a SQL Server?0
-
YesKind Regards,
Ewald Venter0 -
My wild guess is that you have a collation and regional settings problem.0
-
Hello,
Check in Database->Alter , all settings in Tab -> Collation. Must be te same in both database.
This problem can occurs when You restore backup to database with other collation settings.0 -
Hi,
Thanks, I also thought that was the problem, but it was just confirmed that the collation for the 2 databases are the same.
](*,)
Restore to native database works though... so it is some SQL setting?Kind Regards,
Ewald Venter0 -
I presume that the restoring DB is on a new machine/server. Double check the collation again and also check the regional settings and input locale of the operating system. Also check the setting "File->Database->Alter->Collation(page)->Validate Code Page". Look up the purpose of this setting in NAV online help.0
-
When you make a NAV backup (fbk) the character data in the backup is based on the OEM code page of that machine (this is based on the Non-Unicode setting in Regional Settings). It is not based on the Format country in Regional Settings, or the keyboard/language.
When you restore that backup you must ensure that the setting is the same at restore time - if it is on a different machine it might not be the same of course.
Unfortunately NAV does not check that the settings are the same, and extended characters will undergo a transformation now in the wrong code page.
The database collation will not be a problem here because NAV won't let you open a database from a client with different code pages (provided that you don't untick the Validate Code Page setting).Dean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.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