Skip to main content
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

  • Kae Profile Picture
    150 on at
    RE: Your program license does not allow you to publish error

    Okay, so how will I know which object ID I need to use for reportextension? can I just use any number? 

    reportextension 1322 "PO KSS" extends "Standard Purchase - Order"

    [quote user="Nitin Verma"]

    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.

    [/quote]
  • Verified answer
    Nitin Verma Profile Picture
    21,571 Moderator on at
    RE: Your program license does not allow you to publish error

    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.

  • Kae Profile Picture
    150 on at
    RE: Your program license does not allow you to publish error

    Why is that?

  • Suggested answer
    Nitin Verma Profile Picture
    21,571 Moderator on at
    RE: Your program license does not allow you to publish error

    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
    RE: Your program license does not allow you to publish error
    [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,571 Moderator on at
    RE: Your program license does not allow you to publish error

    Hi,

    Did you check my answer?

        "from": 117,

  • Kae Profile Picture
    150 on at
    RE: Your program license does not allow you to publish error

    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

  • Kae Profile Picture
    150 on at
    RE: Your program license does not allow you to publish error

    I have a business central essential license.

  • Suggested answer
    Nitin Verma Profile Picture
    21,571 Moderator on at
    RE: Your program license does not allow you to publish error

    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"

  • Suggested answer
    Alok.kulshreshtha Profile Picture
    934 on at
    RE: Your program license does not allow you to publish error

    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.

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans