microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
718 stars 242 forks source link

Can not install a hello world OnPrem with personal licence #7776

Closed jmadrigalTCN closed 1 week ago

jmadrigalTCN commented 2 weeks ago

Please include the following with each issue:

1. Describe the bug In a OnPrem v. 230 and 240 version and with my licence in these BBDD, I can not install any app, not eve a helloWorld, with target=OnPrem in the app.json file

2. To Reproduce Steps to reproduce the behavior:

Create a new HelloWorld app with AL Go comand. Set then property Target = OnPrem in the app.json file: i.e:

{ "id": "5db73a4e-87c0-4ca3-a223-ce332f64366f", "name": "test01", "publisher": "Default Publisher", "version": "1.0.0.0", "brief": "https://tecon.es", "description": "https://tecon.es", "privacyStatement": "https://tecon.es", "EULA": "https://tecon.es", "help": "https://tecon.es", "url": "https://tecon.es", "logo": "logo/informacion.png", "contextSensitiveHelpUrl": "https://tecon.es", "dependencies": [], "screenshots": [], "platform": "1.0.0.0", "application": "24.0.0.0", "idRanges": [ { "from": 50100, "to": 50149 } ], "resourceExposurePolicy": { "allowDebugging": true, "allowDownloadingSource": true, "includeSourceInSymbolFile": true }, "runtime": "13.0", "features": [ "NoImplicitWith","TranslationFile" ], "target": "OnPrem" }

Then, with a final custer licence installed in the BBDD, try to install the app via Ctrl+F5 or with powershell, and then you will get the next error:

The request for path /BC240/dev/apps?tenant=default&SchemaUpdateMode=forcesync&DependencyPublishingOption=default failed with code UnprocessableEntity. Reason: Sorry, we can't proceed with the operation for app 'borrame33' by 'Default Publisher' for tenant 'default' because the app doesn’t meet our Universal Code requirement. You must either upgrade the app to meet the requirement or license the non-Universal Code module that grants an exception to the requirement. For more information, see https://aka.ms/bcUniversalCode.

Can not we now set the target as OnPrem for OnPremise environments?

dannoe commented 2 weeks ago

Check the provided link with your partner account: https://aka.ms/bcUniversalCode Or read this blog post https://community.dynamics.com/blogs/post/?postid=5508a98b-1175-431d-98c1-c1f80ee1753e

You have to license apps that don't target the cloud.

BazookaMusic commented 1 week ago

This is by design as the error describes. As mentioned, the apps must be licensed if they are targeting on-prem..