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 :
Microsoft Dynamics NAV (Archived)

Code changes doesn't get run

(0) ShareShare
ReportReport
Posted on by 453

Hi 

I have a problem. I use NAV 2013 R2. When I change the code in an object, let say table 79.

The code doesn't run even though it should be. The debugger also shows the old code. 

I have compiled the object and restarted service and restarted the client. 

But it doesn't run the new code. 

What can I do?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Avinash B Profile Picture
    1,455 on at
    RE: Code changes doesn't get run

    Hi,

    Some times it happens.
    The problem would be the meta data for the object is not updated.

    The solution may be to compile all the objects and check.
    Otherwise build server application objects.

    Please refer this.
    docs.microsoft.com/.../how-to--build-server-application-objects

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Code changes doesn't get run

    Try also clearing the object cache from C/SIDE (Tools --> Options --> Set Object Cache to 0).

  • Suggested answer
    AJAnsari Profile Picture
    5,754 on at
    RE: Code changes doesn't get run

    Also, have you checked to see if the client is connecting to the correct service? If you have separate dev, test and prod databases, it's possible that the client you're connecting from is pointing to an incorrect service, or the service you're connecting to is pointing to a database other than what you're expecting. It may sound silly, but I have seen this happen when multiple databases and service tiers are in play.

    I hope this helps. If my response has answered your question, please verify by clicking Yes next to "Did this answer your question?"

  • Suggested answer
    Suresh Kulla Profile Picture
    50,241 Super User 2025 Season 2 on at
    RE: Code changes doesn't get run

    Please check this article

    blogs.msdn.microsoft.com/.../about-object-metadata-and-why-i-cant-see-object-changes-in-rtc

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans