web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

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

Deploying from VS code to a sandbox - slow or doesn't complete.

(1) ShareShare
ReportReport
Posted on by 22
Hi,
 
All was fine yesterday;
 
Today if we deploy to a sandbox by uploading the extension via BC front end it works fine;
 
But if we try to deploy via VS code, it starts but never completes -
 
[2024-01-10 09:03:55.66] Publishing AL application using launch configuration 'XXXXXXXX'.
[2024-01-10 09:03:56.28] Authenticated as user '*****@*****.**.**' in tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx'. Please note that these credentials are cached. Clear the credentials cache to authenticate as another user.
[2024-01-10 09:03:56.28] Targeting Dynamics 365 Business Central environment tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx'.
[2024-01-10 09:03:56.29] Sending request to https:/api.businesscentral.dynamics.com/v2.0/XXXXXXXX/dev/metadata?tenant=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
[2024-01-10 09:03:57.30] Publishing package to tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx'
[2024-01-10 09:03:57.31] Sending request to https:/api.businesscentral.dynamics.com/v2.0/XXXXXXXX/dev/apps?tenant=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx&SchemaUpdateMode=forcesync&DependencyPublishingOption=default
 
.... and just sits there. Normally this takes a couple of minutes maximum, today it hasn't completed after 30 minutes. This is with a simple version number change to an existing extension to rule out any changes within the extension.
 
- We have tried two sandboxes on separate tenants - same issue
- We have tried reverting to a previous version of VS code - same issue
- We have tried restarting the environment
- Nothing shows in database locks page in BC
- The connection shows in admin - /Sessions/ but no info showing that it's trying to run any codeunit e.t.c
- Tried three different extensions - same result
- Download symbols works fine
- I can see there was an /Update/ in the night 01:46am; the restart is as manually initiated; the app update 9.15 was (I think) the app deployed manually via front end of BC.
 
Is anyone else having issues deploying from VS code in last day or so on a extension/environment previously working fine?
 
Thanks
Andrew
I have the same question (0)
  • IndraDeMesmaeke Profile Picture
    61 on at
    Deploying from VS code to a sandbox - slow or doesn't complete.
    Hello,
     
    we are experiencing the same issues since this morning. All deploys went fine yesterday, today they also hang as you have described.
    So far we have not found what could be causing this.

    We have tried following remedies without success:
    • Stopping all sessions on the environment
    • Restarting the environment
    • Uploading with a VPN from another region

    Hope there are others who also have insight on this topic.
  • Suggested answer
    Tonya Profile Picture
    16 on at
    Deploying from VS code to a sandbox - slow or doesn't complete.
    Hello,
    Some members of my team have been experiencing these issues as well. 
    I would suggest restarting the environment. 
    From the Admin Center, click the Environment Name, and then Sessions. You can then click "Restart Environment"
     
  • Suggested answer
    YUN ZHU Profile Picture
    92,831 Super User 2025 Season 2 on at
    Deploying from VS code to a sandbox - slow or doesn't complete.
    Hi, I have seen similar problems on SNS, and I suspect this is a Microsoft problem. I didn't encounter these problems when I just tested again. So it seems to have been resolved.
     
    Hope this helps.
    Thanks
    ZHU
  • AndrewOborn Profile Picture
    22 on at
    Deploying from VS code to a sandbox - slow or doesn't complete.
    Update: Today I have found it works on a sandbox in one tenant , but checking sandboxes in two other tenants these do not work yet.
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,275

#2
Sumit Singh Profile Picture

Sumit Singh 2,677

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,526

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans