Skip to main content

Notifications

Announcements

No record found.

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.
  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: DEV: Error downloading symbol in VS Code

    Thank you for sharing final outcome.

  • Jeze Profile Picture
    Jeze 5 on at
    RE: DEV: Error downloading symbol in VS Code

    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.

  • Jeze Profile Picture
    Jeze 5 on at
    RE: DEV: Error downloading symbol in VS Code

    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
    Jeze 5 on at
    RE: DEV: Error downloading symbol in VS Code

    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.

  • Marco Mels Profile Picture
    Marco Mels on at
    RE: DEV: Error downloading symbol in VS Code

    Hello,

    You may want to have a look here:

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

    Thanks.

  • Suggested answer
    Jyotsna NAV Profile Picture
    Jyotsna NAV 585 on at
    RE: DEV: Error downloading symbol in VS Code

    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.

  • Jeze Profile Picture
    Jeze 5 on at
    RE: DEV: Error downloading symbol in VS Code

    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
    divyeshchitte Profile Picture
    divyeshchitte 950 on at
    RE: DEV: Error downloading symbol in VS Code

    Hi Jeze,

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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans