<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Nav developer's blog : Compare and Merge</title><link>http://blogs.msdn.com/nav_developer/archive/tags/Compare+and+Merge/default.aspx</link><description>Tags: Compare and Merge</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Upgrading Application Objects - Tips</title><link>http://blogs.msdn.com/nav_developer/archive/2009/01/06/upgrading-application-objects-tips.aspx</link><pubDate>Tue, 06 Jan 2009 16:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9285467</guid><dc:creator>lalake</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/nav_developer/comments/9285467.aspx</comments><wfw:commentRss>http://blogs.msdn.com/nav_developer/commentrss.aspx?PostID=9285467</wfw:commentRss><description>&lt;P&gt;Some&amp;nbsp;partners use the &lt;SPAN class=KeywordHighlight id=#h12&gt;Merge&lt;/SPAN&gt; tool in the NAV Developer Toolkit&amp;nbsp;to attempt to &lt;SPAN class=KeywordHighlight id=#h13&gt;merge&lt;/SPAN&gt; the FULL set of objects from the old and new versions. This is not necessary and&amp;nbsp;often will cause more problems than it is worth.&lt;/P&gt;
&lt;P&gt;For the purpose of discussion, let's say that you are upgrading a database from version 3.70 to 5.0 SP1. &lt;/P&gt;
&lt;P&gt;One common error that occurs is something like this...&lt;/P&gt;
&lt;P&gt;Your program license does not permit you to delete the IC Partner Code field in the &lt;X&gt;table. &lt;/P&gt;
&lt;P&gt;The IC Partner Code field is a field that did not exist in 3.70 but has been added to the 5.0 SP1 database. Most often what we find is that partners are mistakenly trying to import the merged objects into the Customer's database when they receive errors like this. The new fields for 5.0 SP1 do not exist in the customer's database. You will not be able to import the merged text file that you created from the Developer's &lt;SPAN class=KeywordHighlight id=#h10&gt;Toolkit&lt;/SPAN&gt; into your customer's database. You must first import the text file into a base Cronus 5.0 SP1 database. Once the import has completed successfully, you will then export all the objects from this database as an fob file, and then you will be able to import the fob into your customer's database. &lt;BR&gt;&lt;/P&gt;
&lt;P&gt;These program license errors also occur if the object merge is not handled correctly. The main thing to keep in mind is that there will be fields that existed in 3.70 that do not exist in 5.0 SP1 and new fields in 5.0 SP1 that did not exist in 3.70.&amp;nbsp;A partner&amp;nbsp;license will not permit you to delete or create fields in the NAV reserved range. However, this SHOULD NOT be a problem if the object &lt;SPAN class=KeywordHighlight id=#h14&gt;merge&lt;/SPAN&gt; is&amp;nbsp;done correctly. Keep in mind that if there&amp;nbsp;have been NO modifications to&amp;nbsp;an object, then there is no need to import a merged version of that&amp;nbsp;object into 5.0 SP1. Any data from 3.70 that needs to be converted will be handled during the data conversion part of the upgrade process. When you run step 1 of the &lt;SPAN class=KeywordHighlight id=#h16&gt;upgrade&lt;/SPAN&gt; &lt;SPAN class=KeywordHighlight id=#h17&gt;toolkit&lt;/SPAN&gt;, the data that needs to be converted will be moved over to temporary tables and then converted during step 2.&lt;BR&gt;&lt;BR&gt;Concentrate on your modified objects. If you are going to use the NDT to perform the &lt;SPAN class=KeywordHighlight id=#h18&gt;merge&lt;/SPAN&gt;, try working with only the modified set of objects rather than trying to &lt;SPAN class=KeywordHighlight id=#h19&gt;merge&lt;/SPAN&gt; every object in the database. As a matter of fact, it will often be faster to manually re-enter your modifications in the base 5.0 SP1&amp;nbsp;database than to try to track down all of the errors that can occur with the &lt;SPAN class=KeywordHighlight id=#h20&gt;merge&lt;/SPAN&gt;. One option is to use a text compare tool to compare the base 3.70 unmodified table to your modified one, then manually copy and paste your modifications into 5.0SP1. The NDT function Compare Two Versions works well for this purpose. TIP:&amp;nbsp;Make sure&amp;nbsp;before you do a text compare&amp;nbsp;that the language layers in the "Old Base Version" match the "Current Custom Version". This will prevent having nearly every object show&amp;nbsp;differences&amp;nbsp;in the Compare Tool due to captions...&lt;/P&gt;
&lt;P&gt;Open a clean Cronus&amp;nbsp;database for your Old Base Version.&lt;BR&gt;Go to Tools/Object Designer.&lt;BR&gt;Go to Tools/&lt;SPAN class=KeywordHighlight id=#h62&gt;Language&lt;/SPAN&gt; Module/Export&lt;BR&gt;Select a file name on your computer for the export in case you should need it at some time in the future.&lt;BR&gt;Select one of the languages that you do not want and then be sure to click the Delete &lt;SPAN class=KeywordHighlight id=#h63&gt;Language&lt;/SPAN&gt; text box. Select OK.&lt;BR&gt;Repeat for each of the languages that you do not need.&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Another thing to keep in mind when using the &lt;SPAN class=KeywordHighlight id=#h21&gt;Merge&lt;/SPAN&gt; Tool in the Developer &lt;SPAN class=KeywordHighlight id=#h22&gt;Toolkit&lt;/SPAN&gt; is that you usually cannot&amp;nbsp;just Accept All Changes with a set of customized objects, because there are almost always conflicts in code that must be resolved manually. Many developers prefer to use the Compare tool in the &lt;SPAN class=KeywordHighlight id=#h23&gt;toolkit&lt;/SPAN&gt; and then copy and paste the changes manually into the new version. Compare and &lt;SPAN class=KeywordHighlight id=#h24&gt;Merge&lt;/SPAN&gt; is a tool for developers to use as they see fit, but it is not flawless, so you should always check the suggested changes and resolve any conflicts manually.&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;Laura K. Lake&lt;/P&gt;
&lt;P&gt;Microsoft Dynamics NA&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;Microsoft Customer Service and Support (CSS) North America&lt;/P&gt;
&lt;P&gt;These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use. &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9285467" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/nav_developer/archive/tags/Upgrade/default.aspx">Upgrade</category><category domain="http://blogs.msdn.com/nav_developer/archive/tags/Compare+and+Merge/default.aspx">Compare and Merge</category><category domain="http://blogs.msdn.com/nav_developer/archive/tags/Merge+Tool/default.aspx">Merge Tool</category><category domain="http://blogs.msdn.com/nav_developer/archive/tags/NDT/default.aspx">NDT</category></item></channel></rss>