Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Error while try to connect sandbox with VScode in AL

(0) ShareShare
ReportReport
Posted on by 1,664

Hi All,

we are facing below error while we try to connect business central sandbox with vscode extension. we are using below versions instance to connect.

Error: The SSL connection could not be established, see inner exception.

The remote certificate is invalid because of errors in the certificate chain: RevocationStatusUnknown, OfflineRevocation

Business central version: 21.2

Al extension version: v10.2.719883

AL Run time property: 9.0 [Also tried with 10.0]

pastedimage1671802377859v1.png

pastedimage1671802402068v2.png

Thank you.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Error while try to connect sandbox with VScode in AL
    [quote user="Inkey Solutions"]

    Hi

    Tried this as well, but still, we are facing same issue.

    Thank you.

    [/quote]

    Did you make sure to add the correct tenant ID to your launch.json file?

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,036 Super User 2024 Season 2 on at
    RE: Error while try to connect sandbox with VScode in AL

    Hi, The following is the lauch.json file I used for testing, I hope it can give you some reference.

    pastedimage1672097026406v1.png

    My test environment:

    pastedimage1672097088829v2.png

    Thanks.

    ZHU

  • Suggested answer
    pankaj.k Profile Picture
    pankaj.k 962 on at
    RE: Error while try to connect sandbox with VScode in AL

    Share your Launch.json and App.json File code

  • Inkey Solutions Profile Picture
    Inkey Solutions 1,664 on at
    RE: Error while try to connect sandbox with VScode in AL

    Hi

    Tried this as well, but still, we are facing same issue.

    Thank you.

  • Suggested answer
    pankaj.k Profile Picture
    pankaj.k 962 on at
    RE: Error while try to connect sandbox with VScode in AL

    Hi inkey,

    Delete HelloWorld file because you can face the Duplicate Object Id Issue.

    after this, close  all the tab & VSCode and Retry it again.

  • Inkey Solutions Profile Picture
    Inkey Solutions 1,664 on at
    RE: Error while try to connect sandbox with VScode in AL

    Hi

    Yes, we have a right environment type, sandbox name in the launch. Json file.

    but still, we are facing same issue.

    Thank you.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Error while try to connect sandbox with VScode in AL

    Please check your launch.json file.

    Make sure you have the right enviornment type, sandbox name and tenant/domain defined there.

    learn.microsoft.com/.../devenv-json-files

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans