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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Custom Web Service constantly requires re-publishing

(0) ShareShare
ReportReport
Posted on by 70

I have a custom web service (codeunit) that I use in a Sandbox cloud environment, and I'm using it to return metadata on some of the properties in various tables. It was coded using the AL extension and it works, but at seemingly random intervals when I call the service it will return 404, at which point I just need to reopen VSCode and run the command "Publish and open in the designer". After that it will work again for a while before breaking again.

I suppose I have two questions: 

1.) What is the cause of this?

2.) If it's something I need to work around, is it possible to create a script that will publish that codeunit automatically when it breaks?

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    If you need the app long term then publish it via the UI. Vs code does tell you that apps installed in that way can be unpublished.

  • Suggested answer
    YUN ZHU Profile Picture
    95,597 Super User 2025 Season 2 on at

    Hi, Maybe it has something to do with the following.

    Important: Extensions that have been published from Visual Studio Code are removed when the environment is updated or relocated within our service. For more information, see this article on sandbox environments https://go.microsoft.com/fwlink/?linkid=2153804.

    pastedimage1654044559341v1.png

    pastedimage1654044604881v2.png

    Hope this helps as well.

    Thanks.

    ZHU

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans