Restore error on sql server

ta5
Member Posts: 1,164
Hi
While restoring a fbk (backed up from a Navision 3.7) on sql server 2005 I get the ffw error:
"The Gen. Journal Line table contains a value in a Code field that cannot be used with Microsoft Business Solutions-Navision: Field External Document No., Value I-104.427.250ã."
Please note: This behavior is reproducable and the last digit of the original value entered in the field was "§" (paragraph sign). In the error message it is shown as "ã" (a with tilde).
The restore operation is stopped then. However, if database properties are changed (database,alter) collation: validate code page=no, the restore is successful. The last sign of the restored value is shown then as "ã" (a with tilde).
This is quite strange, especially backup and restore were made on exactly the same machine. ](*,)
Any ideas?
Thomas
While restoring a fbk (backed up from a Navision 3.7) on sql server 2005 I get the ffw error:
"The Gen. Journal Line table contains a value in a Code field that cannot be used with Microsoft Business Solutions-Navision: Field External Document No., Value I-104.427.250ã."
Please note: This behavior is reproducable and the last digit of the original value entered in the field was "§" (paragraph sign). In the error message it is shown as "ã" (a with tilde).
The restore operation is stopped then. However, if database properties are changed (database,alter) collation: validate code page=no, the restore is successful. The last sign of the restored value is shown then as "ã" (a with tilde).
This is quite strange, especially backup and restore were made on exactly the same machine. ](*,)
Any ideas?
Thomas
0
Comments
-
1) Which language you are using on the native server? (the Regional settings in control panels, last tab, language for nonunicode apps.)
2) Which collation you are using on the MS SQL for your DB?0 -
Ok, here we go:
What I did:-
* Backup on a german system
* Restore on sql on a english system. This caused the error mentioned above.
* So I made the restore on the english system, but native. This worked, but the characters were converted (§ to ã), but I didnt notice that.
* Backup the restored database again to see whether this can be restored now
* Restore on sql on the english system did not work, although the backup was made on the same system. Same error as before, the ã was not valid
The solution:
Backup and restore should be performed on the same system. The problem was, I had no connection to the original db from the english system, this means I had only the backup with me..
It seems to work now0 -
:-) Yes, the systems with different codepages are big pain...0
-
while we are on same subject of different code pages. We have a client that has a chinese db and US. The objects are the same US version, they are on different codepages. Chinese CPR and English US. As well as different collation.
The reason they are on different db is because navision did not allow double byte characters.
Navisino recently released docs that you can simply change fin.stx and you can use double byte characters.
I downloaded the fin.stx files and restored the db. I can see the data all scrambled, after changing to codepage to Chinese was I able to see the chinese characters.
So in order to combine the db, the citrix box has to change the codepage to chinese, but what collation should I use? I tried binary, but still get error if the chinese characters are part of a key.0 -
Another Collation issue.
We have several customer abroad, all using SQL2000. In our central database we have copies of theirs.
One of them in Turkey. They have Turkish collation.
They made a backup (.fbk). We won't to restore it, but get the same error as Thomas.
If I try to Alter the Collation of the database on the server (I can choose Turkish out of the drop down box), it won't change it.
Could this be because the client does not have the code page installed?
Maarten0 -
Problem is, that if you make the backup on PC which has another codepage for non-unicode applications than the Collation on SQL, you will have problems when restoring, because many characters will be cross-translated. In generally, the option "check codepage" is not good to have disabled.0
-
The backup was made on the server over there. So no problems with the "check codepage" there. I am right if I think the problem is the client here?0
-
Main tip:
1) Backup and restore must be done on PC with same codepage.
2) Backup and restore must use DB with same SQL collation
additional point:
3) PC codepage and SQL collation codepage is same
if these two things are OK, you will not have this problem.
If something is set in another way, you can have wrong result (restore was finished, but you see incorrect characters in NAV etc.)
Point 3 is there to precede problems with cross-translated characters...0 -
Thank you Kamil.
It's very clear.0 -
[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