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

Hello World - Bad request, downloading symbols

(0) ShareShare
ReportReport
Posted on by 45

Hello!

So, I'm just now venturing into Dynamics development, and was trying the hello world example outlined in the docs. I've followed the directions here https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-get-started, but I am unable to download reference symbols. Here is my console output:

[2020-02-18 14:32:55.25] Using reference symbols cache path: /Users/lewislacook/Documents/AL/ALProject1/./.alpackages
[2020-02-18 14:32:55.27] Authenticating...
[2020-02-18 14:32:55.95] Authenticated.
[2020-02-18 14:32:55.95] Authenticated as user 'lewis@johnporterdecisionlink.onmicrosoft.com'. Please note that these credentials are cached. Clear the credentials cache to authenticate as another user.
[2020-02-18 14:32:55.95] Targeting Dynamics 365 Business Central.
[2020-02-18 14:32:55.97] Sending request to api.businesscentral.dynamics.com/.../packages
[2020-02-18 14:32:55.97] Sending request to api.businesscentral.dynamics.com/.../packages Application&versionText=1.0.0.0
[2020-02-18 14:32:55.97] Sending request to api.businesscentral.dynamics.com/.../packages Application&versionText=15.0.0.0
[2020-02-18 14:32:56.37] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=Base%20Application&versionText=15.0.0.0 failed with code BadRequest. Reason: Bad Request
[2020-02-18 14:32:56.77] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=System%20Application&versionText=1.0.0.0 failed with code BadRequest. Reason: Bad Request
[2020-02-18 14:32:56.90] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=System&versionText=15.0.0.0 failed with code BadRequest. Reason: Bad Request
[2020-02-18 14:32:56.91] 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.
Microsoft (R) AL Compiler version
Copyright (C) Microsoft Corporation. All rights reserved

Compilation started for project 'ALProject1' containing '1' files at '14:32:57.655'.

error AL1045: The package cache /Users/lewislacook/Documents/AL/ALProject1/./.alpackages could not be found.

Compilation ended at '14:32:57.748'.

Error: The package could not be created.

Could anyone please advise?

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

    in most cases following properties have the wrong values (here with sample values), the correct values depend on the used bc release:

    "platform": "13.0.0.0",

    "application": "13.0.0.0",

    "runtime": "2.0"

  • chillzilla Profile Picture
    45 on at

    Thank you so much for your answer, Franz Kalchmair!

    I was able to find the platform version in the admin center for my sandbox, and I'm guessing that the application property refers to the version of the Base Application in my dependencies in app.js (correct me if I'm wrong about this, please). But where do I find info about the runtime?

    Thank you!

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    With the latest publicly available AL language extension, when you start a new AL project (AL:Go!)you're prompted to select the D365BC version (platform version) you have and app.json is correctly setted for you:

    Target platform 4.0 --> BC 15.x

    Target platform 3.0 --> BC 14.x

    Target platform 2.0 --> BC 13.x

  • chillzilla Profile Picture
    45 on at

    Yes, but if I choose 4.0 (as my sandbox admin panel says I have platform version 15.2), I'm still unable to download the symbols due to Bad requests.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Please post launch.json and app.json files.

  • chillzilla Profile Picture
    45 on at

    Thank you, I appreciate the help!

    launch.json

    {

       "version": "0.2.0",

       "configurations": [

           {

               "type": "al",

               "request": "launch",

               "name": "Microsoft cloud sandbox",

               "startupObjectId": 22,

               "startupObjectType": "Page",

               "breakOnError": true,

               "launchBrowser": true,

               "enableLongRunningSqlStatements": true,

               "enableSqlInformationDebugger": true

           }

       ]

    }

    app.json

    {

     "id": "3bcd7da4-3a75-4655-b368-ee8df298ad15",

     "name": "ALProject6",

     "publisher": "Default publisher",

     "version": "1.0.0.0",

     "brief": "",

     "description": "",

     "privacyStatement": "",

     "EULA": "",

     "help": "",

     "url": "",

     "logo": "",

     "dependencies": [

       {

         "appId": "63ca2fa4-4f03-4f2b-a480-172fef340d3f",

         "publisher": "Microsoft",

         "name": "System Application",

         "version": "1.0.0.0"

       },

       {

         "appId": "437dbf0e-84ff-417a-965d-ed2bb9650972",

         "publisher": "Microsoft",

         "name": "Base Application",

         "version": "15.0.0.0"

       }

     ],

     "screenshots": [],

     "platform": "15.0.0.0",

     "idRanges": [

       {

         "from": 50100,

         "to": 50149

       }

     ],

     "contextSensitiveHelpUrl": "ALProject6.com/.../",

     "showMyCode": true,

     "runtime": "4.0"

    }

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    These files seems correct. Here you're connecting to a primary cloud sandbox. Credentials are ok? The primary cloud sandbox is on version 15.2?

  • chillzilla Profile Picture
    45 on at

    I think I'm authenticating correctly--I'm following the flow that the AL extension dictates in VS Code. I'm basing my guess of the platform version from info I found in the admin center (which has this listed under production):

    Version Management

    Application version

    15.2.39060.0

    Platform version

    15.2

    Update version

    Update scheduling available

    Earliest update date

    Update window (EST, UTC-5:00)

    Update window has not been set

  • chillzilla Profile Picture
    45 on at

    Just to update this for posterity:

    I had no actual sandbox, just (somehow) a production instance. Once I created a sandbox I received this issue:

    failed with code Forbidden. Reason: You do not have the following permissions on TableData NAV App: IndirectRead

    But this is a much more concrete issue and has been documented elsewhere on these forums.

    Thank you to stefano and archer for helping me think through this!

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 2,116

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans