Hi Guys,
I'm reading these forums for years now, and I always seem to find a solution for my NAV problems, but this time I've gone too far :-$
I'm running a HUGE NAV conversion from NAV3.70 to NAV2013R2 with a database the size of a truck (500Gigs).
Now I'm finally in NAV2013R2 and right at the start of Step2 I get this error:
Microsoft Dynamics NAV
Break On Error Message:
The following SQL error was unexpected.
The data type nvarchar cannot be used as an operand to the UNION, INTERSECT or EXCEPT operators because it is not comparable.
Statement(s) could not be prepared.
OK
I've read about this error on different places. And they all lead to Collation issue. I tried various things: newest builds for NAV2013, NAV2013R2, first RTM then the new Builds, Tried to change collation...nothing helps...
My conversionlist contains 70 steps to take and 3 days of running time, so it's almost impossible to trace. Personally I think it's somewhere between opening for the first time in NAV2013 and running Powershell to sync Tenant.
Has anyone crossed this before? If so, could help me in the right direction?
It's highly appreciated, since I ran out of options... :roll:
With kind regards,
Michael
0
Comments
We didn't manage to find what caused the collation to be incorrect but the above did fix it. Hope some of that helps!
Thanks for your response! Since the problem is in a lot of columns / tables...isn't it possible to change the collation for all the columns / tables involved in 1 query? It would take forever to do it all manually
Thanks!
Just to let you know: I fixed the issue finally! \:D/
After upgrading:
- Stop the Service Tier
- Set the database to Single User
- Alter Database -> Sorting -> change the collation from the NAV Developer Environment to a different value.
- Set the database to multiple users again
- Start the Service Tier
- Run Powershell (-SyncTenant)
Warning: This will increase the size of the database a lot! After it's done, you should perform a database schrink.