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

  • Suggested answer
    hverheij Profile Picture
    55 on at
    RE: Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)

    This morning I was struggling with this as well.

    Then I realized that I forgot to set the authentication type when creating the container with the New_BcContainer command (-auth NavUserPassword ).

  • Brian Manchester - Flexware Profile Picture
    20 on at
    RE: Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)

    Unfortunately that did not work. However, the behavior changed. Instead of asking me twice for the login it immediately failed.

    Output:

    [2021-01-13 08:29:34.46] Using reference symbols cache path: c:\Users\brian.manchester\Documents\AL\ALProject1\./.alpackages
    [2021-01-13 08:29:34.46] Sending request to dev02:7049/.../packages
    [2021-01-13 08:29:34.47] Sending request to dev02:7049/.../packages
    [2021-01-13 08:29:34.47] Error: An error occurred while sending the request.
    Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
    An existing connection was forcibly closed by the remote host.

    [2021-01-13 08:29:34.47] Error: An error occured while processing the request.
    Request ID: bbf714df-1009-42b1-aaf5-1d6cf60c1f74
    Session ID: db92aa66-7591-4297-a567-e06106f93950

    If you are targeting a cloud instance, supply these IDs if contacting Microsoft support.
    [2021-01-13 08:29:34.47] Error: An error occurred while sending the request.
    Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
    An existing connection was forcibly closed by the remote host.

    [2021-01-13 08:29:34.47] Error: An error occured while processing the request.
    Request ID: a77ea3dd-3f02-4be7-9e1c-28e31fcd8f74
    Session ID: db92aa66-7591-4297-a567-e06106f93950

    If you are targeting a cloud instance, supply these IDs if contacting Microsoft support.
  • TanzeelurRehman Profile Picture
    75 on at
    RE: Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)

    In the launch.json

    Can you try changing the following values

    "environmentType": "Sandbox",
    "server": "http://dev02",
  • Brian Manchester - Flexware Profile Picture
    20 on at
    RE: Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)

    So I followed your advice: removed all instances of BC, uninstalled Docker, removed references, restarted, reinstalled Docker, restarted, created a new BC instance using PS script below and I still have the same issue.

    PS script:

    $artifactUrl = Get-BCArtifactUrl -type sandbox -country us -select Latest
    $credential = New-Object pscredential 'admin', (ConvertTo-SecureString -String 'pass@word1' -AsPlainText -Force)
    New-BcContainer -accept_eula -containerName dev02 -artifactUrl $artifactUrl -Credential $credential -updateHosts -imageName mcr.microsoft.com/businesscentral -includeAL -installCertificateOnHost -memoryLimit 6G -useSSL -PermissionSetId super

    launch.json:

    {
        "version""0.2.0",
        "configurations": [
            {
                "name""Dev02",
                "request""launch",
                "type""al",
                "environmentType""OnPrem",
                "server""https://dev02",
                "serverInstance""BC",
                "authentication""UserPassword",
                "tenant""default",
                "startupObjectId"22,            
                "startupObjectType""Page",            
                "breakOnError"true,
                "launchBrowser"true,
                "enableLongRunningSqlStatements"true,
                "enableSqlInformationDebugger"true            
            }
        ]
    }
    app.json:
    {
      "id""6868cf79-f7b2-415a-8232-5f62f1be22cd",
      "name""BCDevHellowWorld",
      "publisher""Brian Manchester",
      "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://dev01.com/help/",
      "showMyCode"true,
      "runtime""6.0"
    }
    One last note, I just started with BC yesterday. I'm brand new to this platform. Trying to learn as I go (reading articles, watching youtube, etc...). So, I have installed everything from scratch as of yesterday.

    Thanks for any help that can be provided.

  • TanzeelurRehman Profile Picture
    75 on at
    RE: Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)

    Can you share launch.json and app.json, also the endpoints in your docker container.

    In my case the issue was simply with the docker, so I did an uninstall of the docker container and also deleted all the reference of NAV containers in the host system (i.e my docker container title was ax365bc, so i searched for the references using searcheverything utility and deleted the references). Then I reinstalled docker and then created the docker containers then it worked like a charm,

  • Brian Manchester - Flexware Profile Picture
    20 on at
    RE: Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)

    I have the same issue. None of the suggestions have resolved my issue. Has anyone found a reliable fix?

  • TanzeelurRehman Profile Picture
    75 on at
    RE: Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)

    Thank you Ankit,
    I will check your solution and update here soon.

  • Anks27 Profile Picture
    1,083 on at
    RE: Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)

    We were facing the same issue earlier, so after researching so many things and asking the questions to community and other developers, we have found that when we are using the platform version 16.0.0.0  that time error will solve and you will able to download the symbols of version 17.

    Just try this and let us know if this solution will help to your issue. for reference below is the screen shot.

    We have also published the latest version of our app with compatibility to version 17.

    pastedimage1605791248103v3.png

  • TanzeelurRehman Profile Picture
    75 on at
    RE: Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)

    Will check this also. Thank you for the suggestions. I will update here soon.

  • Marcel D. Profile Picture
    10 on at
    RE: Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)

    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

🌸 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
YUN ZHU Profile Picture

YUN ZHU 297 Super User 2025 Season 1

#2
Mansi Soni Profile Picture

Mansi Soni 203

#3
Sagar_Dangar_MCP Profile Picture

Sagar_Dangar_MCP 161

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans