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:
And in Lauch.json
and this is what I was trying to publish,
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]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.
Why is that?
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.
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.
Hi,
Did you check my answer?
"from": 117,
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.
I have a business central essential license.
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"
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.
Sohail Ahmed
2,655
Mansi Soni
1,574
YUN ZHU
1,453
Super User 2025 Season 1