web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Your program license does not allow you to publish error

(0) ShareShare
ReportReport
Posted on by 150

Hello,I am new to VS Code and developer. I was adding a "Description 2" field in the Purchase Order report layout with ReportExtension in AL(VSCode) and Business Central cloud. As I ran the code I received the following error: 

[2022-05-18 14:53:23.79] The request for path /v2.0/BC_Sandbox/dev/apps?tenant=xyz&SchemaUpdateMode=synchronize&DependencyPublishingOption=default failed with code UnprocessableEntity. Reason: Your program license does not allow you to publish 'PO KSS'.

Can anyone help me to get pass-through this error? 

Here is the code I have in App.json:

{
  "id": "xyz",
  "name": "VScode",
  "publisher": "Default publisher",
  "version": "1.0.0.0",
  "brief": "",
  "description": "",
  "privacyStatement": "",
  "EULA": "",
  "help": "",
  "url": "",
  "logo": "",
  "dependencies": [],
  "screenshots": [],
  "platform": "1.0.0.0",
  "application": "20.0.0.0",
  "idRanges": [
    {
      "from": 117,
      "to": 50149
    }
  ],
  "resourceExposurePolicy": {
    "allowDebugging": true,
    "allowDownloadingSource": false,
    "includeSourceInSymbolFile": false
  },
  "runtime": "9.0"
}

And in Lauch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Microsoft cloud sandbox",
            "request": "launch",
            "type": "al",
            "environmentType": "Sandbox",
            "environmentName": "BC_Sandbox",
            "startupObjectId": 22,
            "tenant": "xyz",
            "startupObjectType": "Page",
            "breakOnError": true,
            "launchBrowser": true,
            "enableLongRunningSqlStatements": true,
            "enableSqlInformationDebugger": true
        }
    ]
}

and this is what I was trying to publish,

pastedimage1652909615573v1.png

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,307 Super User 2025 Season 2 on at

    Hi, Does the user you are using have a BC license?

    You can confirm in the Microsoft 365 admin center.

    For example, in my test tenant

    pastedimage1652923260583v1.png

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Alok.kulshreshtha Profile Picture
    934 on at

    Hi,

    Check if you have a "D365 EXTENSION MGT" permission group. if not add into User permission group and try.

    Regards,

    Alok Kulshreshtha

    Please Verify my answer if you find my post helpful.

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Hi,

    I just checked you have assigned the wrong object range. it may be a typo error.

    {

     "id": "xyz",

     "name": "VScode",

     "publisher": "Default publisher",

     "version": "1.0.0.0",

     "brief": "",

     "description": "",

     "privacyStatement": "",

     "EULA": "",

     "help": "",

     "url": "",

     "logo": "",

     "dependencies": [],

     "screenshots": [],

     "platform": "1.0.0.0",

     "application": "20.0.0.0",

     "idRanges": [

       {

         "from": 117,

         "to": 50149

       }

     ],

     "resourceExposurePolicy": {

       "allowDebugging": true,

       "allowDownloadingSource": false,

       "includeSourceInSymbolFile": false

     },

     "runtime": "9.0"

  • Kae Profile Picture
    150 on at

    I have a business central essential license.

  • Kae Profile Picture
    150 on at

    I have super permission, does it matter?

    Also, I tried but getting the same error, the Extension MGT was red in red font same as D365 extension MGT. pastedimage1652929686618v1.png

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Hi,

    Did you check my answer?

        "from": 117,

  • Kae Profile Picture
    150 on at
    [quote user="Nitin Verma"]

    Hi,

    I just checked you have assigned the wrong object range. it may be a typo error.

    {

     "id": "xyz",

     "name": "VScode",

     "publisher": "Default publisher",

     "version": "1.0.0.0",

     "brief": "",

     "description": "",

     "privacyStatement": "",

     "EULA": "",

     "help": "",

     "url": "",

     "logo": "",

     "dependencies": [],

     "screenshots": [],

     "platform": "1.0.0.0",

     "application": "20.0.0.0",

     "idRanges": [

       {

         "from": 117,

         "to": 50149

       }

     ],

     "resourceExposurePolicy": {

       "allowDebugging": true,

       "allowDownloadingSource": false,

       "includeSourceInSymbolFile": false

     },

     "runtime": "9.0"

    [/quote]

    My Object ID is 1322, I tried to use a number lower than that so that it's within the range. But it's not working. I tried to use a starting point as 1322. I am getting the same error.

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Yes, this is the problem, you are not allowed to take those ranges, you have to take ranges 50000..99999, or you have to consult with your development partner, how to deal with it.

  • Kae Profile Picture
    150 on at

    Why is that?

  • Verified answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Because Microsoft provides only those ranges in special case, either you are requesting from Microsoft to provide for your new vertical development, then Microsoft approves and gives you those special Object range, but in general case, you dont have access of those ranges, try with range between 50000..99999.

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,175

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,476 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,435 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/globalsearch/?q=Microsoft+Security+Exposure+Management++price" - Nested quantifier +.