Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Client error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hello,

While I am connecting user to system give me error " Object of type CodeUnit with id 1 could not be found."

regards,

*This post is locked for comments

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: Client error

    Hope you have already resolve the issue. If so please do verify the answers that helped you to resolve your issue.

    If the issue is still there, try importing codeunit 1 back to your database using development environment.

  • mmv Profile Picture
    mmv 11,467 on at
    RE: Client error

    Hi,

    It doesn't require too much of expertise to compile the objects.  From the Development Environment, in the Designer, you may select the All option and select all the objects (Ctrl + A) and use the function key F11.

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Client error

    open development environment and check the compiled column/field of codeunit 1. if it's not checked, then it was changed and saved without compilation by a developer. select the codeunit 1 object and click F11 to compile the codeunit. in best case after that it's simply compiled and you can try again. otherwise you get an error, if it cannot be compiled.

    if that does not help, click in the dev env on button ALL (last button in the navigation pane of the objects window, below the buttons tables, pages, reports, ...), then select all objects by shortcut STRG+A, then click F11. so, all objects will be compiled. after that try again.

    if that also do not help you have a bigger problem with your database and it's needed to start with a new database, because that would mean the database is corrupted.

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: Client error

    How to compile objects : msdn.microsoft.com/.../hh166981(v=nav.71).aspx

    (You required to have a developer license)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Client error

    Hello, programing is not my field and neither expert how to do this?

    regards,

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Client error

    Hi,

    Please compile all the objects and try to reconnect.

    Regards

    Narayan

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,287 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans