Merge-NAVApplicationObject - how reliable is it?

greatscott001
Member Posts: 32
I have always been skeptical of automatic merge tools. I have used the Merge-NAVApplicationObject and it seems to work okay. My question is are there any horror stories out there about this process NOT working. I know about the VersionList issue and can deal with that. I also know that the online documentation is not completely accurate about what some of the options do. What I am wondering is, have there been any cases where the merged result was simply wrong. Wrong and doesn't compile I can at least resolve but wrong and compiles is a very bad thing. I have spotted checked the results I have gotten and it seems okay but I have a project coming up with some major modifications in a lot of base NAV objects (300+). Will the merge work and I can just stop worrying or are there instances where things are just broken afterwards?
Looking for a little reassurance here.
Looking for a little reassurance here.
0
Best Answer
-
I use it all the time for the monthly updates.
Make sure you always use the latest version, the early ones had some bugs.
The only big issue is with outcommenting with curly brackets in source code. Never used in standard objects, but if you merge an unknown database this might cause conflicts to be overlooked:
https://grumpynav.wordpress.com/2015/01/26/caution-the-merge-cmdlets-might-merge-incorrectly/
For the Version List there are lots of solutions around, some links here (German forum), I always use mine
http://www.msdynamics.de/viewtopic.php?f=17&t=25131&#p105917Kai Kowalewski5
Answers
-
I've been using it several times and have not seen any problems yet.0
-
From which version to which version you want to upgrade?
I have upgraded from NAV 4.00 to NAV 2016 and my step by step guide is attached with this post.
I have used Merge Tool for this rather than Powershell utility. Trust me merge tool is great. at least you know what you are doing.
Mergetool is best if you have a lot of customization in Standard objects.
Please have a look and feel free to ask if you have query.Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.0 -
I use it all the time for the monthly updates.
Make sure you always use the latest version, the early ones had some bugs.
The only big issue is with outcommenting with curly brackets in source code. Never used in standard objects, but if you merge an unknown database this might cause conflicts to be overlooked:
https://grumpynav.wordpress.com/2015/01/26/caution-the-merge-cmdlets-might-merge-incorrectly/
For the Version List there are lots of solutions around, some links here (German forum), I always use mine
http://www.msdynamics.de/viewtopic.php?f=17&t=25131&#p105917Kai Kowalewski5 -
I also have quite some "unexpected" behavior at least. Maybe some of you could confirm it:
I do have a Project NAV 2013 R2 up to 2017. So far so good. The solution currently running of course has some changes inside. So i do have the following things prepared for the merge:
ORIGINAL: NAV 2013 R2 (as it comes from the DVD)
MODIFIED: NAV 2013 R2 + OurSolution v.6 + Mods
(now the first Tricky one): TARGET: NAV 2017 + OurSolution v.8
This Works for the most of the Objects just fine. but now it happens: since 2013 has passed by for a long time the "OurSolution v.6" is not really a v.6 any longer it has been changed to a v.7 for example. now v.7 and v.8 share some Objects (let's call it stuff from v.8 had been downgraded to v.6/7).
So it happens that in the ORIGINAL Folder I do miss an Object (from OurSolution) as it simply does not exist there! While the TARGET and the MODIFIED have it.
The result is somewhat messed up. It looks like that the system "flips" TARGET and MODIFIED. The Result file looks more as the MODIFIED as the TARGET. in worst case it kicked away new functions from the TARGET File.
Can anybody try this out or confirm this? And if possible, does anybody has an idea/solution to it?
Would have a two step merge worked better? first go up to NAV 2017 basic and afterwards merge the result with OurSolution?0 -
I also have quite some "unexpected" behavior at least. Maybe some of you could confirm it:
I do have a Project NAV 2013 R2 up to 2017. So far so good. The solution currently running of course has some changes inside. So i do have the following things prepared for the merge:
ORIGINAL: NAV 2013 R2 (as it comes from the DVD)
MODIFIED: NAV 2013 R2 + OurSolution v.6 + Mods
(now the first Tricky one): TARGET: NAV 2017 + OurSolution v.8
This Works for the most of the Objects just fine. but now it happens: since 2013 has passed by for a long time the "OurSolution v.6" is not really a v.6 any longer it has been changed to a v.7 for example. now v.7 and v.8 share some Objects (let's call it stuff from v.8 had been downgraded to v.6/7).
So it happens that in the ORIGINAL Folder I do miss an Object (from OurSolution) as it simply does not exist there! While the TARGET and the MODIFIED have it.
The result is somewhat messed up. It looks like that the system "flips" TARGET and MODIFIED. The Result file looks more as the MODIFIED as the TARGET. in worst case it kicked away new functions from the TARGET File.
Can anybody try this out or confirm this? And if possible, does anybody has an idea/solution to it?
Would have a two step merge worked better? first go up to NAV 2017 basic and afterwards merge the result with OurSolution?
First of all make sure that your old version, customized version and target version all are of same region. Secondly, use merge tool for 3 way file comparison.Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.0 -
Well I do use the Merge-NAVApplicationObject if this is what you are talking about. I kindly ask you to phrase the stuff as it is called by MS so everybody understand
And as I wrote: i do NOT have a old version for the Objects in question (ORIGINAL is empty) I only have files in Target and Modified. and they are different. so the Merge has to do something.
1 -
I've seen strange results on pages that were heavily customized by us where all custom page controls were grouped together. I think this was because a standard NAV control has moved to a different group, this totally confused the PS merge. I'd rather have the PS merge throwing me error's then trying to solve complex problems.
Other then that, currently no problems. We rely on it to update our modules with Microsoft rollups, and also to update our customers with newest version of our modules.In a world without Borders or Fences, who needs Windows and Gates?0 -
The biggest problem is when Microsoft refactors the code - e.g. codeunit 80 - and the before and after from the Microsoft versions are too different.
In newer releases we can start using events more to remove custom code from the objects. Eventually extensions should allow complete removal of all customizations and still provide the developer view of the code in the extensions - I am guessing that will happen in the year 2020.David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
Actually, usually the biggest problem is the developer who's made customizations. It all depends on how cleanly you've customized in the past. If you've made a big mess and did not pay any attention to proper architecture and design, then it will most likely laugh at you
If you've taken the time to do things properly then it will be of great help to you.
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