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...
Suggested answer

Error with deploying an app to Sandbox

(0) ShareShare
ReportReport
Posted on by 9

Hi,

We're first starting out with developing our first AL Language app. We're having trouble deploying the Hello World basic app to our Sandbox account.

What we've done so far is:

1. Download the AL Language VS Code extension

2. Create a basic app (ALT A, ALT L).

3. Authenticate with our Sandbox account

4. Deploy (F5).

The errors we're getting in the terminal:

[2021-07-15 16:42:59.45] Sending request to https://api.businesscentral.dynamics.com/v2.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=18.0.0.0
[2021-07-15 16:42:59.45] Sending request to https://api.businesscentral.dynamics.com/v2.0/sandbox/dev/packages?publisher=Microsoft&appName=System&versionText=1.0.0.0
[2021-07-15 16:43:00.46] The request for path /v2.0/sandbox/dev/packages?publisher=Microsoft&appName=System&versionText=1.0.0.0 failed with code NotFound. Reason: Not Found
[2021-07-15 16:43:04.95] The request for path /v2.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=18.0.0.0 failed with code NotFound. Reason: Not Found
[2021-07-15 16:43:04.95] Could not download reference symbols. Please ensure that:
1. The correct server name and instance are specified in the launch.json file.
2. The correct application version is specified in the app.json file.
3. The dependencies are correctly specified in the app.json file.
Microsoft (R) AL Compiler version 7.3.7.27759
Copyright (C) Microsoft Corporation. All rights reserved
launch.json

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

app.json

{
  "id": "7edce079-e514-4f51-bf41-7fe36d831099",
  "name": "ALProject3",
  "publisher": "Default publisher",
  "version": "1.0.0.0",
  "brief": "",
  "description": "",
  "privacyStatement": "",
  "EULA": "",
  "help": "",
  "url": "",
  "logo": "",
  "dependencies": [],
  "screenshots": [],
  "platform": "1.0.0.0",
  "application": "18.0.0.0",
  "idRanges": [
    {
      "from": 50100,
      "to": 50149
    }
  ],
  "contextSensitiveHelpUrl": "https://ALProject3.com/help/",
  "showMyCode": true,
  "runtime": "7.0"
}

  • Suggested answer
    ItayTip Profile Picture
    9 on at
    RE: Error with deploying an app to Sandbox

    What turns out to be the issue is a lack of understanding of the environment name. Even though we had a sandbox account for Business Central, it could not be used as the target deployment type. The sandbox value refers to a sandbox container for BC, rather than a sandbox account.

    The solution was to simply run an OnPrem container, with environment type set to OnPrem as well.

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Error with deploying an app to Sandbox

    Hello,

    Assuming the environment name is indeed called "Sandbox", I would change it in the json file as such:

    "environmentName": "Sandbox",

    I ran the scenario and it seems it automatically calls it "sandbox". I was not able to publish it either with "sandbox" as the name but did not receive an error like you seem to have.

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 715

#2
YUN ZHU Profile Picture

YUN ZHU 682 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 529

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans