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

DEV: Error downloading symbol in VS Code

(0) ShareShare
ReportReport
Posted on by 5

Hello,

i'm trying to start with my experience in developing for BC with VSCode. 

I've followed this document: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-get-started-container-sandbox

Now i have my up and running sandbox on my server, i can access it with my username and password.

I also installed AL on my VSCode and generated my first project with AL: GO!

Now, if i try to download symbols i get an error: ' No credential available in security package' (or at least this is the english translation more or less)

I've edited my launch.json with my parameters:

"server""">http://bctest",
"serverInstance""BC",
"authentication""Windows",
Any idea on what i'm missing or what i can check?
If i try UserPassword instead of Windows i get prompted to insert username and password over and over again.
I have the same question (0)
  • Suggested answer
    divyeshchitte Profile Picture
    968 on at

    Hi Jeze,

    Can you let me know which version are you trying to install?

  • Jeze Profile Picture
    5 on at

    Hello, thanks for your answer.

    Here's some details:

    Version: 16.2.13509.13619-it

    Style: sandbox

    Platform: 16.0.13440.13615

    Generic Tag: 0.0.9.99

    Container OS Version: 10.0.17763.973 (ltsc2019)

    Edit: I copied the info above from the PowerShell prompt after using the CreateBCSandbox.ps1 script

  • Suggested answer
    Jyotsna NAV Profile Picture
    585 on at

    By what I understand, you are using BC Cloud but what your launch.json file contains looks like a config for local/ on-prem.

    While you create your Workspace, select "Microsoft Cloud Sandbox".

    Refer: jyotsnanav.blogspot.com/.../getting-started-with-al-in-dynamics-365.html

    Hope it helps!

    Regards

    Jyotsna

    jyotsnanav.blogspot.com

    Don't forget to help the community by verifying my answer or at least like the suggestion if it did help in any way. It will let others know that the topic has a verified answer and was beneficial to you.

  • Marco Mels Profile Picture
    on at

    Hello,

    You may want to have a look here:

    community.dynamics.com/.../unauthorized-when-try-download-symbols-in-vs-code-using-credentials-username

    Thanks.

  • Jeze Profile Picture
    5 on at

    Thanks, but that thread do not answer my problem.

    [quote user="Marco Mels"]

    Hello,

    You may want to have a look here:

    community.dynamics.com/.../unauthorized-when-try-download-symbols-in-vs-code-using-credentials-username

    Thanks.

    [/quote]

    I tried clearing credential multiple time and, as stated on my OP, i switched between Windows auth and UserPassword auth but nothing seems to work.

  • Jeze Profile Picture
    5 on at

    Thanks,

    [quote user="Jyotsna NAV"]

    By what I understand, you are using BC Cloud but what your launch.json file contains looks like a config for local/ on-prem.

    While you create your Workspace, select "Microsoft Cloud Sandbox".

    Refer: jyotsnanav.blogspot.com/.../getting-started-with-al-in-dynamics-365.html

    Hope it helps!

    Regards

    Jyotsna

    jyotsnanav.blogspot.com

    Don't forget to help the community by verifying my answer or at least like the suggestion if it did help in any way. It will let others know that the topic has a verified answer and was beneficial to you.

    [/quote]

    as described by the microsoft doc linked in my OP, i downloaded the PowerShell script from cloud instance of Business Central.

    Then i used that script to create a container on my local server.

    My local Business Central container seems to work fine and i can login in the application without any problem, as you can see in this screenshot:

    pastedimage1594371165297v1.png

    That's the sandbox i'm trying to connect to.

    From what you can deduce that i'm using BC cloud?

    Edit: I also tried the the procedure in your blog:

    my output is the following:

    [2020-07-10 11:00:28.52] Sending request to api.businesscentral.dynamics.com/.../packages
    [2020-07-10 11:00:28.52] Sending request to api.businesscentral.dynamics.com/.../packages
    [2020-07-10 11:00:28.52] Sending request to api.businesscentral.dynamics.com/.../packages
    [2020-07-10 11:00:29.34] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=System%20Application&versionText=16.0.0.0 failed with code BadRequest. Reason: Bad Request
    [2020-07-10 11:00:29.36] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=Base%20Application&versionText=16.0.0.0 failed with code BadRequest. Reason: Bad Request
    [2020-07-10 11:00:29.46] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=System&versionText=16.0.0.0 failed with code BadRequest. Reason: Bad Request
    [2020-07-10 11:00:29.47] 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.
    I have a suspect: it can be a license problem??
  • Jeze Profile Picture
    5 on at

    Ok, after trying with a different account for Business Central i was able to download the symbols and to authenticate.

    Still i can't use my local container but at this point i guess i will use the cloud sandbox.

    Thanks everyone for the help.

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Thank you for sharing final outcome.

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,151

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans