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

Error with deploying an app to Sandbox

(0) ShareShare
ReportReport
Posted on by 11

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"
}

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    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.

  • Suggested answer
    ItayTip Profile Picture
    11 on at

    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.

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 2,066

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans