Hi everyone, I m trying to learning some more things about extensions. While trying to use extensions concept from on NAV 2017 I got an error code upgrade cannot be done.
I know that NAV 2016 extensions was not upgrading code. Now, I guess NAV 2017 extensions also have a same problem.
But the main question running in my mind is why was extensions introduced if its not upgrading successfully for all object of NAV?
Can someone clarify me this question or am I wrong with my thinking? Please correct me.
Suggestions welcome.
Harikiran BM | ERP Specialist
0
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Thanks for your reply @mohana_cse06 ,
Attached is the image which explains the error I received when trying to use extensions concept of some add-on for 2017..
I tried to create a extensions package and received this error
"Package contains database schema that are not handled in upgrade code".
So, I just wanted to know is this error is because it cannot handle the custom changes of codeunit? or something different?
Because I do remember Extensions in 2016 was not working for the custom base codeunit(modified codeunit, ex: codeunit 80 with some customization).
I guess now you have understood my question.
we cannot add any code in any type of object. It is same in NAV2017 as well.
about your error, we always need to add upgrade codeunit along with our extension.
https://msdn.microsoft.com/en-us/library/mt703362(v=nav.90).aspx
you can create codeunit with 2 functions (atleast blank)
OnNavAppUpgradePerDatabase
OnNavAppUpgradePerCompany
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav