Hello folks,
I created a local docker container of sandbox for wave 2, 2020.
Following are the commands that I used to create the sandbox environment.
$artifactUrl = Get-BCArtifactUrl -select Latest
$credential = New-Object pscredential 'admin', (ConvertTo-SecureString -String 'Alpha_975' -AsPlainText -Force)
New-BcContainer -accept_eula -containerName ax365bc -artifactUrl $artifactUrl -Credential $credential -assignPremiumPlan -updateHosts -imageName mcr.microsoft.com/businesscentral -includeAL -includeTestToolkit -installCertificateOnHost -memoryLimit 6G -useSSL
The container got successfully created and I can browse and everything seems fine.
I then created an extension in VS Code using the AL Go, but when I try to download symbols I am getting the following error.
_Authorization has failed or the credentials have expired. The credential cache has been cleaned. Any access to reach Business Central would require new authorization._
Following the launch.json and app.json files
Launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Your own server",
"request": "launch",
"type": "al",
"environmentType": "Sandbox",
"server": "https://ax365bc",
"serverInstance": "BC",
"authentication": "UserPassword",
"startupObjectId": 22,
"startupObjectType": "Page",
"breakOnError": true,
"launchBrowser": true,
"enableLongRunningSqlStatements": true,
"enableSqlInformationDebugger": true,
"tenant": "default"
}
]
}
app.json
{
"id": "8d8e0534-bda4-4907-8867-aeb58e05f623",
"name": "ALProject3",
"publisher": "Default publisher",
"version": "1.0.0.0",
"brief": "",
"description": "",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"dependencies": [],
"screenshots": [],
"platform": "17.0.0.0",
"application": "17.0.0.0",
"idRanges": [
{
"from": 50100,
"to": 50149
}
],
"contextSensitiveHelpUrl": "https://ALProject3.com/help/",
"showMyCode": true,
"runtime": "6.0"
}
This is the user card, below, I tried the username with and without the domain name, but no luck.
(
)
Can you try clearing your credentials and redownload the symbols?
after creating the new docker machine based on runtime 17 (2020 wave 2). I was unable to download even for the first time. I cleared credentials for not less than hundred of times but no luck.
Adding "tenant": "default" to launch.json solved it for me.
We will look into improving the experience by introducing a better error message.
Adding "tenant": "default" to launch.json solved it for me.
Thanks, this works for me :-)
Most helpful comment
Thanks, this works for me :-)