web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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.

(0) ShareShare
ReportReport
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
    Mohana Yadav Profile Picture
    61,248 Super User 2026 Season 2 on at

    How does your app.json look like?

    do you have proper permissions to connect and download?

  • Ananda Profile Picture
    15 on at

    app.json

    {

     "id": "3b82633d-2d00-4160-8ded-489c68bcbc74",

     "name": "ALProject1",

     "publisher": "Microsoft",

     "version": "1.0.0.0",

     "brief": "",

     "description": "",

     "privacyStatement": "",

     "EULA": "",

     "help": "",

     "url": "",

     "logo": "",

     "dependencies": [],

     "screenshots": [],

     "platform": "1.0.0.0",

     "application": "18.0.0.0",

     "idRanges": [

       {

         "from": 50100,

         "to": 50149

       }

     ],

     "contextSensitiveHelpUrl": "ALProject1.com/.../",

     "showMyCode": true,

     "runtime": "7.0"

    }

    User got access to - D365 EXTENSION MGT

  • Suggested answer
    Ashish K Profile Picture
    154 on at

    Hello Ananda,

    Where are you connecting to ? Cloud sandbox or Your own local BC server ?

    pastedimage1630403394796v1.png

    If you are using BC Onpremise then, check the below  again in a new Project :

    1. Select the correct BC version in VS Code which matches to your BC version
    2. Enable Developer service End point in Config file
    3. Ensure Server name, Server port and Authentication mode are correct in Launch.json file

    If this has answered to your question then please do mark the Suggestion as Answered.

    pastedimage1630403948101v2.png

    pastedimage1630403972920v3.png

  • Ananda Profile Picture
    15 on at

    Hello Ashish

    I'm using Microsoft Cloud Sandbox. Not On premise.

    Thanks

  • ManishS Profile Picture
    86 on at

    can you show your launch file, does it have tenant define with environment type as sandbox

  • Ananda Profile Picture
    15 on at

    Launch.json

    {

       "version": "0.2.0",

       "configurations": [

           {

               "name": "Microsoft cloud sandbox",

               "request": "launch",

               "type": "al",

               "environmentType": "Sandbox",

               "environmentName": "sandbox",

               "startupObjectId": 22,

               "startupObjectType": "Page",

               "breakOnError": true,

               "launchBrowser": true,

               "enableLongRunningSqlStatements": true,

               "enableSqlInformationDebugger": true

           }

       ]

    }

  • ManishS Profile Picture
    86 on at

    Added Tenant in launch and try.

  • Ananda Profile Picture
    15 on at

    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

  • ManishS Profile Picture
    86 on at

    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
    15 on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 720 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 436 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 409 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans