Skip to main content

Notifications

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

Not able to push code to Business Central SandBox from VSCode

Posted on by 5

Hi,

We were able to deploy/push our product code from VS Code to Business Central SandBox environment few days ago but now we cannot do it with below error messages. Please help.

pastedimage1683285782264v1.png

pastedimage1683285793305v2.png

pastedimage1683285801032v3.png

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 4,387 on at
    Not able to push code to Business Central SandBox from VSCode

    Hi, that internal server error is normal. It happens sometimes — I have faced the same issue. Usually, after around 30 minutes, the sandbox automatically allows you to publish the extension.

    In your case, you are also facing another error.

    Here is some suggestions: Refresh sandbox instance
    go to sessions: 
    check if any session is ongoing. if yes then directly close that session. after try to publish code.
    you can restart environment and check
  • Suggested answer
    Truong Tan Chau Profile Picture
    Truong Tan Chau 8 on at
    Not able to push code to Business Central SandBox from VSCode
    You only need to increase the version in .App is okay. In my case, my boss uploaded a version larger than the version I was running to the Cloud, and the next day I had an error like you. What I do is increase my boss's version. Sorry, that is not the case. I'm wrong
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 72,941 Super User 2024 Season 2 on at
    RE: Not able to push code to Business Central SandBox from VSCode

    Hi, just to add some info.

    If you are customizing the AppSource extensio, please do not directly do it in the SaaS sandbox.
    This may be the case if your extension has already been published in AppSource. Please use the Docker version.

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: Not able to push code to Business Central SandBox from VSCode

    Hi BSSI_Vinay,

    You just need to update the "version" in your app.json in VSCode

    pastedimage1683554178168v1.png

    If its "version": "1.0.0.0", make it "version": "1.0.0.1"
    Regards

  • BSSI_Vinay Profile Picture
    BSSI_Vinay 5 on at
    RE: Not able to push code to Business Central SandBox from VSCode

    Here you go with Launch and App Jason files. Thank you.

    0246.Launch.png

    8233.Appjson.png

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Not able to push code to Business Central SandBox from VSCode

    Can you share your launch.json and app.json file?

  • BSSI_Vinay Profile Picture
    BSSI_Vinay 5 on at
    RE: Not able to push code to Business Central SandBox from VSCode

    I tried creating a new SandBox environment but now i am facing the below issue even when i don't have that app installed.

    "Reason: The extension could not be deployed because it is already deployed as a global application or a per tenant application."

  • BSSI_Vinay Profile Picture
    BSSI_Vinay 5 on at
    RE: Not able to push code to Business Central SandBox from VSCode

    I tried creating a new SandBox environment but now i am facing the below issue even when i don't have that app installed.

    "Reason: The extension could not be deployed because it is already deployed as a global application or a per tenant application."

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Not able to push code to Business Central SandBox from VSCode

    Adding more info.

    seems that you dont have super permission on that environment can you check?

  • Suggested answer
    Tech-Lucky Profile Picture
    Tech-Lucky 796 on at
    RE: Not able to push code to Business Central SandBox from VSCode

    Hi,

    To use the sandbox Environment we must have the Partner Sandbox Environment License if you want to use the sandboxes for longer periods otherwise it will be expired, and need to create the new one.

    refer to thinkaboutit.be/.../

    Please Verify my answer if it helps you

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 Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans