Try Microsoft Edge
A fast and secure browser that's designed for Windows 10
I am trying to convert my C/AL files to AL.
I have followed this instruction from start to end.
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:
Why are there so many missing references to standard objects?
what are the versions of symbols under alpackage folders?
if you have older version files, delete them and download symbols again.
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.
These are the files I use
I have tried them, but I still get those errors.
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.
The problem is now solved so far.
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?
Business Applications communities