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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Unknown error when publishing custom API

(1) ShareShare
ReportReport
Posted on by 154
I am trying to create a custom API using vscode / AL. I have follow the example in the documentation for the API car brand / car model.
When I try to publish I get the following error.
 
  Reason: Your license does not grant you the following permissions on TableData 2000000206 Published Application: IndirectInsert for company CRONUS USA, Inc..
 
My launch json looks like:
    "version": "0.2.0",
    "configurations": [
        {
            "name": "IOTW Server",
            "request": "launch",
            "type": "al",
            "environmentType": "Sandbox",
            "environmentName": "D365Env",
            "startupObjectId": 22,
            "startupObjectType": "Page",
            "schemaUpdateMode": "ForceSync",
            "breakOnError": "All",
            "launchBrowser": true,
            "enableLongRunningSqlStatements": true,
            "enableSqlInformationDebugger": true,
            "tenant": "3d1a315f-a282vvvvvvvvvvvvvvvvvvvv",
            "usePublicURLFromServer": true
        }
    ]
 
A question I have is how to tell the launch where to save the API tables/pages. 
I see that "startupObjectId": 22, seems to tell where it goes. This is confusing as I don't now where to save my API and pages.
 
Thans for any help you can give
,
 
 
 
 
 
I have the same question (0)
  • YUN ZHU Profile Picture
    99,789 Super User 2026 Season 1 on at
    Please check your permissions. It looks like the ID you used to publish the extension does not have installation permissions in BC.
    Another thing to confirm is whether you are using a trial environment. If the period has expired, you will not be able to publish the extension. More details:
     
    The API page cannot be opened directly from BC, it is saved in the database.
    You can test it through tools such as Postman.
    For example,
     
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,419 User Group Leader on at
    Hi,
     
    It seems you are trying to publish app in an Evaluation company which comes with an expiry date.
     
    Try these steps -
    1. Delete company Cronus USA from company's page.
    2. Create a new company using company wizard from company's page. (you can choose option to add demo data in new company)
    3. Then try to publish your extension.
     
    If you still want to keep company, then
    1. you can build the extension in VS Code Using CTRL + B.
    2. Once you see extension (.app) file then you can go to extension management page and install extension using wizard. 
     
    This will not generate error.
    Remember - while publishing from extension management page, the version of app should be greater than already installed app.
     
     
    Regards,
    Saurav Dhyani
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,021 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,083 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 731 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans