Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Code changes doesn't get run

(0) ShareShare
ReportReport
Posted on by 445

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

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 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

  • Suggested answer
    AJAnsari Profile Picture
    AJAnsari 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
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 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
    Avinash B Profile Picture
    Avinash B 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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans