Your program license does not allow you to publish

We recently ran into a new issue when we try to push one of our extensions to Microsoft Dynamics NAV 2018 On-premise installations. 

We used PowerShell script to upload the extensions to production and we did this couple of days ago too without an issue. However this time we got the below error during the installation :

“Your program license does not allow you to publish <table extension name>”

The instance was running with the customer’s license and we realized we need to find an alternative method. We had a couple of options, 
1. Change the license, upload the extension and then change the license back
2. Create a new instance and use a development license to upload the extension
3. Try the runtime app option

We first went with the option 01 but we end up with the same error. Even though we upload the license to the instance we could not restart the service, therefore, we were unable to bypass the license issue. 

We went with the third option this time to see how it’s going to work. If you like to read more about it please use this link.

We install the extension to the Development environment which was running with the Developer license and then used below PowerShell command to export the Runtime Package. 

 Get-NAVAppRuntimePackage -ServerInstance DynamicsNAV -AppName 'Proseware SmartApp' -Version -ExtensionPath 'Prosware'  

Once we got the Runtime package we install it to the production environment with the use of the Publish-NavApp and the Install-NAVApp PowerShell cmdlets. 

Runtime package installations skip the license check so you can use this option to install extensions to a Production environment without changing the license. 

** Thank you Isa Sen for helping me to prepare this blog post.

Please provide your feedback with a comment. 
Thank you and Regards,
Tharanga Chandrasekara

Click on a star to rate it!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?


    • ian_scho on February 29, 2020 at 10:24 pm

    Thanks Tharanga – Life saver!

    • ian_scho on February 29, 2020 at 10:25 pm

    Very helpful, Tharanga. We appreciate the post.

Comments have been disabled.