Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

The current AL extension package can only debug Dynamics 365 BC servers with a version >= to v20.

Posted on by 659
I'm attempting to use 'AL: Publish with debugging' and it's failing with the error below:
 
The current AL extension package can only debug Dynamics 365 Business Central servers with a version greater than, or equal to version 20.
Please use a previous AL extension package to debug a server with version: '3.0'.
 
I'm using VS Code with a BC version 14 Docker container, downloaded using a powershell script created by new-BcContainerWizard (version details below):
 
Version: Platform 14.0.29530.0 + Application 29537 (GB Dynamics NAV 14.0)
Azure AD tenant: common, Environment: Production
 
'AL: Publish without debugging' works fine. Any idea where I'm going wrong?
Categories:
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 69,639 Super User 2024 Season 2 on at
    The current AL extension package can only debug Dynamics 365 BC servers with a version >= to v20.
    Generally this is not possible. AL Language needs to be reinstalled each time.
    But you can try methods other than VS Code, such as Cursor. You can install AL Language different from VS Code in it.
     
    Hope this helps.
    Thanks.
    ZHU
     
  • Nick Webb Profile Picture
    Nick Webb 659 on at
    The current AL extension package can only debug Dynamics 365 BC servers with a version >= to v20.
    Is it possible to have 2 separate installations of VS Code on one system, one with a fixed, old version of the AL language extension and one with the latest? Has anyone provided a guide for setting up such a development environment?
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 9,472 Most Valuable Professional on at
    The current AL extension package can only debug Dynamics 365 BC servers with a version >= to v20.
    Hi
    With version 13 of AL, we have this change.

    Business Central server versions released before the April 2022 release (version 20) cannot be debugged with AL extension package versions that are greater than or equal to version 13.

     
    You can change the runtime in the json.
     
    Or you can always temporarily install an older AL version like 12.7
     
    BR
    GR

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans