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 :
Microsoft Dynamics NAV (Archived)

C/AL to AL Conversion

(0) ShareShare
ReportReport
Posted on by 453

Hi guys 

I am trying to convert my C/AL files to AL. 

I have followed this instruction from start to end.

https://docs.microsoft.com/en-gb/dynamics-nav/developer/devenv-txt2al-tool

Problem


When I create the .al files and import them into my Visual Studio Code project, I get tons of errors. about some references to standard objects such as Sales Header or Item are missing. 

I have done following to solve the problem:

  1. Download Symbols
  2. Instal .VSIX from Modern Development Environment folder.

Why are there so many missing references to standard objects?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    what are the versions of symbols under alpackage folders?

    if you have older version files, delete them and download symbols again.

  • Suggested answer
    Andrey Baludin Profile Picture
    3,941 on at

    If you firstly imported files and then install .vsix - you need to push Reload button on installed AL extension in vs code or just close and open vs code. After that - download symbols. All missing references should disappear.

  • Mehdi26 Profile Picture
    453 on at

    Hi Mohana

    These are the files I use

    Microsoft_Application_11.0.19846.0.app

    Microsoft_System_11.0.12925.0.app

  • Mehdi26 Profile Picture
    453 on at

    Hi Andrey

    I have tried them, but I still get those errors.

  • Olister Rumao Profile Picture
    3,967 on at

    Hi, did you install the Modern Development Environment??

    It is included in the Setup.

    If Yes, then in C:\Program Files (x86)\Microsoft Dynamics NAV\110\Modern Development Environment,

    you'll find a .VSIX file.

    Install this extension file via Visual Studio Code.

    Set appropriate Parameters in launch.json file and download the Symbols with Ctrl+Shift+P

    Also, in the NAV Server (Administration) for the instance check the Enable Development Service Endpoint and Enable loading application symbol reference at Server Startup.

    Restart the Server Instance

    Set appropriate Parameters in launch.json file in Visual Studio Code and download the Symbols with Ctrl+Shift+P.

  • Verified answer
    Mehdi26 Profile Picture
    453 on at

    The problem is now solved so far.

    Solution:

    1. In the beginning we started with a local installation NAV 2018 version W1 11.0 (11.0.19394.0). But it seems that W1 can not be used if its targeting a specific region.
    2. We then went back to use Docker. We used the latest FINUS (the latest one from 22. Jan 2018)
    3. After installing the .cer and .vsix file. The problem with those missing references seem to be solved.

    BR

    Mahyar

  • Community Member Profile Picture
    on at

    Hi,

    I have found that the Txt2Al conversion tool does not place quotes around expressions that have spaces in them. As a result, many references to standard objects and fields were not valid. Perhaps this is a similar issue to what you are experiencing?

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 > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans