SBX - Search With Button

SBX - Forum Post Title

The Package cache

Dynamics 365 Business Central Forum

adamp asked a question on 6 Jun 2019 6:05 AM

Question Status

Suggested Answer

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 

Reply
Suggested Answer

Try to execute Clear Editor History from command palette and download symbols again.

Reply
adamp responded on 7 Jun 2019 4:35 AM

No joy with the above I'm afraid

Reply
Suggested Answer

Nothing also using AL:Clear Credential Cache?

Reply
Pratyusha responded on 7 Jun 2019 7:42 AM

I have this exact same error and nothing seems to work. I tried it on 2 different machines (thinking the problem could be with user rights)

Clear Credential Cache and Clear Edit History also doesn't work unfortunately. Any suggestions ?

Reply
Teddy Herryanto responded on 9 Jun 2019 3:05 PM
My Badges
Suggested Answer

Did you download the symbols ?

Try running the AL:Download Symbols.

Reply
adamp responded on 9 Jun 2019 3:48 PM

Unfortunately no clear commands are working, error received below:

code NotFound. Reason: No published package matches the provided arguments.

[2019-06-09 21:43:32.19] Could not download reference symbols. Please ensure that:

1. The correct server name and instance are specified in the launch.json file.

2. The correct application version is specified in the app.json file.

3. The dependencies are correctly specified in the app.json file.

Reply
Suggested Answer

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.

Reply
Teddy Herryanto responded on 10 Jun 2019 3:11 PM
My Badges
Suggested Answer

Check your server name and instance in launch.json. You might be looking at the  wrong server.

Reply
adamp responded on 12 Jun 2019 8:35 AM

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

       }

   ]

}

Reply
Pratyusha responded on 12 Jun 2019 9:29 AM

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 ?

Reply
Teddy Herryanto responded on 12 Jun 2019 3:12 PM
My Badges
Suggested Answer

Are you using cloud sandbox or On-Premise ?

Reply
adamp responded on 13 Jun 2019 1:28 AM

It's the cloud sandbox version.

Where can I locate the launch file?

Reply
Teddy Herryanto responded on 13 Jun 2019 3:26 PM
My Badges
Suggested Answer

Under the .vscode folder in your AL files.

Try to use Tenant parameter to specify your tenant

Reply
Suggested Answer

Try to execute Clear Editor History from command palette and download symbols again.

Reply
Suggested Answer

Nothing also using AL:Clear Credential Cache?

Reply
Teddy Herryanto responded on 9 Jun 2019 3:05 PM
My Badges
Suggested Answer

Did you download the symbols ?

Try running the AL:Download Symbols.

Reply
Suggested Answer

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.

Reply
Teddy Herryanto responded on 10 Jun 2019 3:11 PM
My Badges
Suggested Answer

Check your server name and instance in launch.json. You might be looking at the  wrong server.

Reply
Teddy Herryanto responded on 12 Jun 2019 3:12 PM
My Badges
Suggested Answer

Are you using cloud sandbox or On-Premise ?

Reply
Teddy Herryanto responded on 13 Jun 2019 3:26 PM
My Badges
Suggested Answer

Under the .vscode folder in your AL files.

Try to use Tenant parameter to specify your tenant

Reply

SBX - Two Col Forum

SBX - Migrated JS