Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Client error

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
    TharangaC Profile Picture
    TharangaC 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,465 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
    TharangaC Profile Picture
    TharangaC 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans