Getting the below error when running my first hello world?
The package cache c:\Users\adam.ONSITE\Documents\\./.alpackages could not be found.
Help much appreciated
Getting the below error when running my first hello world?
The package cache c:\Users\adam.ONSITE\Documents\\./.alpackages could not be found.
Help much appreciated
Thanks Amit - for me clearing the cache did not work - I had to specify the information for tenant, environment etc. in the launch .json in order to connect to the proper Sandbox Environment in MS BC Cloud.
Hi,
Pls refer the below link
https://erpconsultors.com/clear-credentials-cache-in-al-language/
Regards
Amit Sharma
I had the same issue -
problem was, that in the launch.json I had to specify the tenant information.
with the below setup it worked:
{
"version": "0.2.0",
"configurations": [
{
"type": "al",
"request": "launch",
"name": "<Sandbox-Name>",
"tenant": "<tenant-id>",
"environmentType": "Sandbox",
"environmentName": "<environment-Name>",
"dependencyPublishingOption": "Default",
"schemaUpdateMode": "Synchronize",
//"startupObjectId": 22,
//"startupObjectType": "Page",
"breakOnError": true,
"launchBrowser": false,
"enableLongRunningSqlStatements": true,
"enableSqlInformationDebugger": true
}
]
}
Under the .vscode folder in your AL files.
Try to use Tenant parameter to specify your tenant
It's the cloud sandbox version.
Where can I locate the launch file?
Are you using cloud sandbox or On-Premise ?
I finally could figure out the issue while facing the same error. There were two instances created on my machine. and the launch file was connecting the wrong instance. I have an on premise installation. I corrected the launch file and I could download the symbols. The /.alpackages folder was also created. Maybe some issue with the severinstance in the launch file ?
This is my current file:
{
"version": "0.2.0",
"configurations": [
{
"type": "al",
"request": "launch",
"name": "Microsoft cloud sandbox",
"startupObjectId": 22,
"startupObjectType": "Page",
"breakOnError": true,
"launchBrowser": true
}
]
}
Check your server name and instance in launch.json. You might be looking at the wrong server.
Is this an online sandbox, a Docker-based sandbox or a local environment? I suspect an error on your configuration because I’ve always fixed this VS Code error with the above solutions. Please post environment details and launch.json.