While deploying one of our base extensions to a customer tenant we got an error with “Unable to Install the Extension *******”. This was the same extension we deployed to the same tenant couple of days ago with a different version. We revert our changes and try to publish it again but the same error.
The error was not much descriptive so we could not identify what was the issue. Therefore we deploy the same extension to one of our on-premise servers and check the event log.
We got the below error from the event log:
The runtime version of the extension package is currently set to ‘2.1’. The runtime version must be set to ‘2.0’ or earlier in the app.json file in order to install the extension package on this server.
Our app.json file of the AL extension didn’t have the “runtime” property defined so I assume when we uploading the extension to Business Central, upload function took 2.1 version as the default which was the latest at that time. However, the tenant was not supporting the 2.1 version.
We add the “runtime”: “2.0” property to app.json and then we upload it to Business Central. This time it got uploaded to Business Central without an issue.
Please provide your feedback with a comment.
Thank you and Regards,
Tharanga Chandrasekara
1 comment
I'm using the latest CU (July 2019) and get the below error , obviously I set the runtime to 3.0 ,
is there any way I can upgrade the runtime to 3.0 ?
Publish-NAVApp : The runtime version of the extension package is currently set to '3.0'. The runtime version must be
set to '2.4' or earlier in the app.json file in order to install the extension package on this server.
At line:1 char:2
+ Publish-NAVApp -ServerInstance BCApp -PATH "C:BCExtentionsDemoPro …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Publish-NAVApp], InvalidOperationException
+ FullyQualifiedErrorId : MicrosoftDynamicsNavServer$BCApp/nav-systemapplication,Microsoft.Dynamics.Nav.Apps.Manag
ement.Cmdlets.PublishNavApp