Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Business Central forum

The Package cache

(0) ShareShare
ReportReport
Posted on by 10

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 

Categories:
  • georg_f Profile Picture
    15 on at
    RE: The Package cache

    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.

  • Suggested answer
    Amit Baru Profile Picture
    3,029 on at
    RE: The Package cache

    Hi,

    Pls refer the below link

    https://erpconsultors.com/clear-credentials-cache-in-al-language/

    Regards

    Amit Sharma

    www.erpconsultors.com

  • georg_f Profile Picture
    15 on at
    RE: The Package cache

    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
            }
        ]
    }
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    13,637 Moderator on at
    RE: The Package cache

    Under the .vscode folder in your AL files.

    Try to use Tenant parameter to specify your tenant

  • adamp Profile Picture
    10 on at
    RE: The Package cache

    It's the cloud sandbox version.

    Where can I locate the launch file?

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    13,637 Moderator on at
    RE: The Package cache

    Are you using cloud sandbox or On-Premise ?

  • Prayusha Profile Picture
    57 on at
    RE: The Package cache

    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 ?

  • adamp Profile Picture
    10 on at
    RE: The Package cache

    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

           }

       ]

    }

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    13,637 Moderator on at
    RE: The Package cache

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

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: The Package cache

    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.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans