Skip to main content

Notifications

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

Internal Server Error while connecting to BC via Visual Studio Code

Posted on by 2
Hello, 
 
I'm trying to connect to Business Central online in Visual Studio Code in order to create queries, but I encounter an error:
 
 
Information om dina behörigheter finns på sidan Gällande behörigheter. Om du vill rapportera ett problem hänvisar du till följande serversessions-ID: 219574.
 
[2023-11-24 10:31:52.74] The request for path /v2.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=23.0.0.0&appId=00000000-0000-0000-0000-000000000000 failed with code Forbidden. Reason: Din licens ger dig inte följande behörigheter i TableData 2000000206 Published Application Publicerad app: IndirectRead för företaget CRONUS SE.

 
 
Information om dina behörigheter finns på sidan Gällande behörigheter. Om du vill rapportera ett problem hänvisar du till följande serversessions-ID: 219575.
 
[2023-11-24 10:31:52.75] 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.
 
Which in translation means:
 
 
Information about your permissions can be found on the Applicable Permissions page. To report a problem, please refer to the following server session ID: 219574.

[2023-11-24 10:31:52.74] The request for path /v2.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=23.0.0.0&appId=00000000-0000-0000-0000-000000000000 failed with code Forbidden. Reason: Your license does not give you the following permissions in TableData 2000000206 Published Application Published app: IndirectRead for the company CRONUS SE.
 
Information about your permissions can be found on the Applicable Permissions page. To report a problem, please refer to the following server session ID: 219575.

[2023-11-24 10:31:52.75] 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.
  
 
These are permissions my user has:
 
  
 
Does it mean I should have different permissions? 
 
Steps taken:
1. VSC: AL: Go!
2. Creating a project
3. Logging into BC with my user credentials
4. Trying to download symbols
ERROR
 
I'd appreciate any help.
Categories:
  • Suggested answer
    Steven Renders Profile Picture
    Steven Renders 5,045 Super User 2024 Season 1 on at
  • Witold Szal Profile Picture
    Witold Szal 2 on at
    Internal Server Error while connecting to BC via Visual Studio Code
    Monika, 
     
    I had similar issue. Check your launch.json file. Tag "environmentName" should not be "sandbox" but real Environment Name (string just after tenant ID in browser addres),
     
    Witek
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 71,565 Super User 2024 Season 2 on at
    Internal Server Error while connecting to BC via Visual Studio Code
    First of all, I think you should temporarily give the user Super permissions to rule out launch.json issues and license issues first.
    Then, the following permission sets are required to install permissions on the system. It is recommended not to just give individual permissions, but to assign the following permission sets to users first.
     
    Hope this helps.
    Thanks.
    ZHU
  • KasparsSemjonovs Profile Picture
    KasparsSemjonovs 3,828 Super User 2024 Season 2 on at
    Internal Server Error while connecting to BC via Visual Studio Code
    Seems that the error states, that the license does not have permissions to the object... So check the license that is imported in the database You are trying to connect to.
    Is the license in the DB is Microsoft partner license or customer license?  If Customer - then is this object ID assigned to the license?
    Also - what Object ID is for the object that You have added to the system?

     

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans