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

Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)

(1) ShareShare
ReportReport
Posted on by 75

Hello folks,
I created a local docker container of sandbox for wave 2, 2020.
Following are the commands that I used to create the sandbox environment.

$artifactUrl = Get-BCArtifactUrl -select Latest
$credential = New-Object pscredential 'admin', (ConvertTo-SecureString -String 'Alpha_975' -AsPlainText -Force)
New-BcContainer -accept_eula -containerName ax365bc -artifactUrl $artifactUrl -Credential $credential -assignPremiumPlan -updateHosts -imageName mcr.microsoft.com/businesscentral -includeAL  -includeTestToolkit -installCertificateOnHost -memoryLimit 6G  -useSSL

The container got successfully created and I can browse and everything seems fine.
I then created an extension in VS Code using the AL Go,  but when I try to download symbols I am getting the following error.

Authorization has failed or the credentials have expired. The credential cache has been cleaned. Any access to reach Business Central would require new authorization.

Following the launch.json and app.json files

Launch.json

`{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Your own server",
            "request": "launch",
            "type": "al",
            "environmentType": "Sandbox",
            "server": "https://ax365bc",
            "serverInstance": "BC",
            "authentication": "UserPassword",
            "startupObjectId": 22,
            "startupObjectType": "Page",
            "breakOnError": true,
            "launchBrowser": true,
            "enableLongRunningSqlStatements": true,
            "enableSqlInformationDebugger": true,
            "tenant": "default"
        }
    ]
}`

app.json

`{
  "id": "8d8e0534-bda4-4907-8867-aeb58e05f623",
  "name": "ALProject3",
  "publisher": "Default publisher",
  "version": "1.0.0.0",
  "brief": "",
  "description": "",
  "privacyStatement": "",
  "EULA": "",
  "help": "",
  "url": "",
  "logo": "",
  "dependencies": [],
  "screenshots": [],
  "platform": "17.0.0.0",
  "application": "17.0.0.0",
  "idRanges": [
    {
      "from": 50100,
      "to": 50149
    }
  ],
  "contextSensitiveHelpUrl": "">https://ALProject3.com/help/",
  "showMyCode": true,
  "runtime": "6.0"
}`

This is the user card, below, I tried the username with and without the domain name, but no luck.

pastedimage1604401142377v1.png

I have the same question (0)
  • darcnus Profile Picture
    247 on at

    I'm a newbie here, but try changing your "environmentType" in launch.json to "OnPrem"

  • TanzeelurRehman Profile Picture
    75 on at

    I tried every possible combination,

    environmentType : OnPrem, Production, Sandbox.

    but with every combination i am getting the same error. There might be some settings/configuration either while creating the container or inside the BC application that i am missing.

  • darcnus Profile Picture
    247 on at

    Did you try changing https:// to just http:// ?

  • TanzeelurRehman Profile Picture
    75 on at

    I have already tried both http and https but no luck

  • Suggested answer
    darcnus Profile Picture
    247 on at

    Try changing "name": to:

    "name": "ax365bc",

    That's the only difference between my (working) launch file and yours. My instance is named OnPrem:

    {
        "version""0.2.0",
        "configurations": [
            {
                "name""OnPrem",
                "request""launch",
                "type""al",
                "environmentType""OnPrem",
                "server""http://OnPrem",
                "serverInstance""BC",
                "authentication""UserPassword",
                "startupObjectId"22,
                "startupObjectType""Page",
                "breakOnError"true,
                "launchBrowser"true,
                "enableLongRunningSqlStatements"true,
                "enableSqlInformationDebugger"true,
                "tenant""default"
            }
        ]
    }
  • TanzeelurRehman Profile Picture
    75 on at

    Seems to be this is the issue, will check and update here soon.

  • TanzeelurRehman Profile Picture
    75 on at

    Tried this, and it is not working either.

  • Suggested answer
    Marcel D. Profile Picture
    10 on at

    Hi TanzeelurRehman,

    I had the same issue and luckily a colleague found the solution, hopefully it works for you as well:

    Here are the steps:

    Create a new user using the following command:

    $credentials = New-Object pscredential 'Admin2', (ConvertTo-SecureString -String 'Password' -AsPlainText -Force)

    New-BcContainerBcUser -Credential $credentials -containerName <containername> -PermissionSetId super

    Then login to BC with the web client. (you might have to re-enter a new password, if that does not work then disable the option change password in the user table via sql).

    Restart your visual studio code en try if you can download symbols now.

    It worked for me....Good Luck!

  • TanzeelurRehman Profile Picture
    75 on at

    It seems the solution, but not working for me, mine one might be a license issue.

  • Marcel D. Profile Picture
    10 on at

    I did that as well, using : Import-BcContainerLicense <dockercontainername> "<license file>" but that did not solve it, after that I created the user and then it worked.

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 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans