The crimescene:
Our customer have a NAV 4.00 on a native database with integrated Celena Payment Management, Customers Own developed webshop etc. The job was to migrate the NAV 4.00 / native into a NAV 4.03 on a MS SQL 2005 databaseserver.
The 95% solution:
It was a easy job: with migrate.fob we cleaned up the native database and migrated it into the SQL-server without serious trouble.
New NAV 4.03 clients was installed in the organisation and it seemed to be working. Celena Payment Management needed a minor upgrade. No problem. The customers webshop worked too.
Then trouble began ..
The remaining 5%:
In Chart of Accounts the G/L accounts was sorted like 1, 11, 111, 1111 etc. Hmm .. this problem was solved by changing the SQL
Data Type property for Table 15 "G/L Account":Field 1 "No." and Table 17 "G/L entry":Field 3 "G/L Account No" to Integer.
Now the sorting of the G/L Accounts was fine.
But .. the "Net Change" and Balance Colums is showing incorrect data! When you f.ex. have a Account Type End-Total with a totalling of "300 .. 6995" you want all the values from G/L Accounts from 300 to (and including) 6995 to be counted in the "Net Change" and "Balance" fields. Instead NAV gives me a count that begins with 3*, 4*, 5* and 6*. Including 51000 and 60995! One big mess with Balance sheet and Income Statement results mixed all up.
My question is: how do I correct the Chart of Accounts in a way that "Net Change" and "Balance" is counted like 1, 2, 3 and 4 insted of 1, 11, 111, 1111 etc: ?
The Customers have hardcoded ](*,) his G/L Account Numbers into his webshop, so renaming the G/L Account Numbers to five figures Numbers, like 00300 and 51000, is an option I would like not to implement.
Help anyone?
Best Regards
JPE
Certified Dynamics NAV Professional
0
Answers
I do not think there is any way you can solve this. I think it is safer to just rename the G/L Accounts. And BTW I am a little worried about you changing the data type on the SQL side.
As for the webshop since you were on C/Side to start with I would assume you used some sort of NAS based interface or the likes (or simply text files exported to a folder :P ). So for that I would add a new field to the G/L Account No. called "Old Crappy G/L Acc. No" and move the current value there before renaming them the right way. Then I would simply change the interface to send to the webshop the "Old Crappy G/L Acc. No" instead of "No." and then you are set.
P.S. I will not even ask how come a webstore is linked to the Chart of Accounts.
Thx for your reply! It's much appriciated The SQL datatype was changed from inside NAV - it is not wise to modify NAV from the SQL-side, I was told when I started at the NSC.
My Customer is convinced that I can work something out that don't involve renaming the G/L Accounts. And I will offcourse do my homework before I have to tell them the bad news. Are you absolutly sure that it is impossinle to organize the "Net Change" and "Balance" Colums for Numeric Search (SQL Datatype Integer) in the Chart of Accounts?
Thanks for the suggestion - I will note it down in case I can't find another solution. I have not seen the code behind the webshop, I have only been told about the limitations the NAV heritage from this webshop. Being a certified MS C# Developer myself I can't see the big problem in editing the Data Access Layer of the Webshop Application. But I am not sure that the Webshop is developed with different layers .. :sick: And this is off course a problem .. for the NAV Consultant ](*,)
JPE
Certified Dynamics NAV Professional
JPE
Certified Dynamics NAV Professional
I am not sure whether there are workarounds for the Net Change and Balance but that is actually: you will have an endless list of places in Navision where you need to work around the issue. You will have to analyze all the places that access G/L Account No. is used in that way and change them and then reports and filtering and so on.
So that is why is easier and safer to just go back to standard Navision.
I know it is not the answer you are looking for but it will save you a lot of headaches in the future.
Have you tried to use Variant instead of Integer?
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Furthermore .. Integer causes some (other) problems which Variant solves. Therefor I just suggested to try to use Variant to also (may be) solve this problem.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
However - it seems like many intelligent people suggests that a renaming is the best practise og the best way to go, considering future development and upgrading etc.
JPE
Certified Dynamics NAV Professional
JPE
Certified Dynamics NAV Professional
It was certainly discussed on mibuso, but I can't find the thread anymore... .
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
We discussed this in email. I cannot recall posting it on the forum. :?
Anyway, you are correct. The integer option is not to be used anymore.
I will also include this information in my session "Migrating from C/Side to SQL" at Directions. Hope you can all make it there.
So; now it is on Mibuso.
Good one =D> .
I didn't think of it when I was reviewing your presentation... .
I think your presentation and the described steps would be quite an interesting thing to publish somehow:
- tips&tricks
- white paper
- ...
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
I am eager to learn more about the migration proces, best practise, pitts to avoid etc., but finding technical information about this at PartnerSource is like looking for coal in a very dark basement. Blindfolded. That's why I have grown happy about Mibuso.
JPE
Certified Dynamics NAV Professional
FYI: more info about Directions: http://www.cronususa.com
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
JPE
Certified Dynamics NAV Professional
RIS Plus, LLC
Isn't there anyone out there that have experieced this problem before and solved without renaming the G/L Account Codes? Or perhaps have solved it but then ran into a application filled with trouble because of the use of the SQL Data Type Property?
JPE
Certified Dynamics NAV Professional
I do admit I am on old Navision guy so I am quite into the "Navision" way.
So I will still suggest renaming the G/L Accounts codes.
But besides the "Navision religion" O:) I would say there are no unknown side-effects to doing that. It is clear what you have to do on both ends (Navision and webshop) and once they are done you will not have to worry about anything else.
If you go the other path you do not know what else can happen and you might only find out too late.
Looking at a very high level I would still go with the safe (though unpopular) option.
Just my 2 cents
Then use this field for sorting where ever you want.
For starters you need to write some code for updating that field for existing data.
JPE
Certified Dynamics NAV Professional
JPE
Certified Dynamics NAV Professional