Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

Posted on by 15

Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

I've tried

7.0 BC 2021 Release Wave 1,  6.0 BC 2020 Release Wave 2, 5.0 BC 2020 Release Wave 1, 4.0 BC 2019 Release Wave 2

and Microsoft Cloud Sandbox

All are giving same error

[2021-08-31 13:59:41.62] Using reference symbols cache path: c:\Users\Amitava\Documents\AL\ALProject1\./.alpackages
[2021-08-31 13:59:41.86] Authenticating...
[2021-08-31 13:59:48.94] Authenticated.
[2021-08-31 13:59:48.94] Authenticated as user 'spadmin@spo365tech.onmicrosoft.com'. Please note that these credentials are cached. Clear the credentials cache to authenticate as another user.
[2021-08-31 13:59:48.94] Targeting Dynamics 365 Business Central.
[2021-08-31 13:59:48.95] Sending request to api.businesscentral.dynamics.com/.../packages
[2021-08-31 13:59:48.96] Sending request to api.businesscentral.dynamics.com/.../packages
[2021-08-31 13:59:50.78] 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-08-31 13:59:50.82] 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-08-31 13:59:50.84] 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.
  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

    Thanks for the confirmation.

  • Hugo Alves Profile Picture
    Hugo Alves 129 on at
    RE: Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

    It was my Corporate VPN connected.
    As soon as i disconnected, it worked.

    A colleague just found this was the issue cause

    For future reference, i am running:
    - Local VSCode
    - connecting CLOUD BC Environment

    Thank you for the answers.

  • ManishS Profile Picture
    ManishS 6,578 on at
    RE: Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

    What permission do you have in client, please check.

    Try adding D365 Full access.

  • Hugo Alves Profile Picture
    Hugo Alves 129 on at
    RE: Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

    Hi VaishnaviJoshi

    as mentioned, it is Cloud.

    About the selected wave:

    Current app.json defines "application": 19.0 and "runtime": "8.0"

    Environments are ahead, at version 20

    i am not starting a new project, just opening an existing one that was cloned from colleagues' github.

    BTW, i tried to set app.json to "application": 20.0 and "runtime": "9.0" and yet it did not work.

    thanks

  • Suggested answer
    Vaishnavi J Profile Picture
    Vaishnavi J 3,056 on at
    RE: Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

    Hi Hugo Alves 

    what is the release wave you have chose?

    and where are you connecting on On-Prem or cloud?

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much

  • Hugo Alves Profile Picture
    Hugo Alves 129 on at
    RE: Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

    Hello all,

    I am having the same problem here connecting to a BC Cloud Tenant for Downloading Symbols.
    I ran the >Clear Credentials Cache and yet it keeps prompting for authentication on and on.

    It shows "Copy & Open" for browser Authentication and then it prompts UID + PWD on VSCode,
    then repeats the same again.

    On Browser Auth step it shows an error:

    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.

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

    Hello,

    You can use the command to clear authentication from cache.

    After that you can try again to authenticate yourself again.

    Thanks.

  • Ananda Profile Picture
    Ananda 15 on at
    RE: Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

    Thanks Maniish.

    I'm getting UID, PWD options at VS Code, key in same, but keep on asking.

    Please find below the log.

    [2021-08-31 17:04:24.89] Using reference symbols cache path: c:\Users\Amitava\Documents\AL\ALProject1\./.alpackages

    [2021-08-31 17:04:24.89] Authenticating...

    [2021-08-31 17:04:25.85] Authenticated.

    [2021-08-31 17:04:25.85] Please authenticate in the Visual Studio Code...

    [2021-08-31 17:04:41.69] Using reference symbols cache path: c:\Users\Amitava\Documents\AL\ALProject1\./.alpackages

    [2021-08-31 17:04:41.69] Authenticating...

    [2021-08-31 17:04:42.68] Authenticated.

    [2021-08-31 17:04:42.68] Please authenticate in the Visual Studio Code...

    The authentication has been cancelled.

    Thanks again

  • ManishS Profile Picture
    ManishS 6,578 on at
    RE: Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

    When you try to download symbol, VS code screen shows a message of a code and asks you to copy and open in browser. There you need to enter the code and authenticate your self.

  • Ananda Profile Picture
    Ananda 15 on at
    RE: Visual Studio Code, AL Download symbols getting an error. - Connecting Business Central for a developer tenant.

    Hello Manish

    Added Tenant , Now it's keep on asking below,

    [2021-08-31 16:50:10.98] Authenticating...

    [2021-08-31 16:50:11.44] Authenticated.

    [2021-08-31 16:50:11.44] Please authenticate in the Visual Studio Code...

    Thanks

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans