Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

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

Posted on by 16
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
Categories:
  • AndrewOborn Profile Picture
    AndrewOborn 16 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.
     
     
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 68,586 Super User 2024 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
  • Suggested answer
    Tonya Profile Picture
    Tonya 14 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"
     
  • IndraDeMesmaeke Profile Picture
    IndraDeMesmaeke 18 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.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

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

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,326 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,166 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans