Hey there !
I was testing extensions in the Nav 2016 (Cronus Database) and couldn't achieve what I wanted to do. So I decided to download Nav 2017 (Downloadable
here if you fill a little survey). Then I thought "Nice ! I will be able to install my 2016 extension on 2017 !".
I got an error :
This wasn't a big extension, but I had to add a field in "Sales Header" Table in it. Understanding how the .DELTA files were generated (
here you have a pretty good example, made by
Ashwini Tripathi) I decided to check the differences between "Sales Header" 's table in those versions, using WinMerge :
(Just in case, all the yellow/grey zones are added/missing code lines)
I got sad, this was blinking more than my Christmas Tree ! When Microsoft announced this new feature, I directly thought about the migrations, like right click, copy, right click, paste.
Can I only use my extensions in the Navision version I developped it ?
Many thanks in advance,
Tranad
Answers
so create global upgrade functions (atleast blank) OnNavAppUpgradePerDatabase and OnNavAppUpgradePerCompany
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I've made some research on those two functions, and tried to follow Waldo's topic (It seems like the function "RESTOREARCHIVEDATA" is only available in NAV 2017). I didn't understood well where I had to use those functions, but I presume in the 2016, in a new CU included in the package.
I tried, creating a new CU in NAV 2016 with those two empty functions :
Then tried to install the new package which included the CU newly created, and had this error :
Could you enlighten me about this new error please ? This all being new, I can't find any hint on the net.
Tranad
please check whether any previous extension used field id's or new object id's which are used in present extensions.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Many thanks ! It's all working now !
Tranad
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!