Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Table cannot be compiled

(0) ShareShare
ReportReport
Posted on by 4,818

Hi expert,

Document Table 6008950 cannot be compiled and  it showed that one of the codeunits does not exist. Actually we have never used this codeunit. We have converted from 4.0 to 2013, and the missing codeunit was in the old system.  Please advise! Thank you!

*This post is locked for comments

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: Table cannot be compiled

    You can either add all the codeunits that required by this table or comment the lines which throw the errors. There might be variables declared for these missing codeunits. So you need to manually delete those as well.

    As mohana said check if you really need this table in your new version, If you do not want this table to be in your new version then simply delete the table.

  • Suggested answer
    sanjeet Profile Picture
    sanjeet 2,205 on at
    RE: Table cannot be compiled

    As you are saying codeunit  is missing either You make that code unit in 2013 or make that line comment and then compile. after that you have to decide whether you need that line of code or not.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,161 Super User 2025 Season 1 on at
    RE: Table cannot be compiled

    It seems to be a Addon table.

    If you are not using that Addon anymore then its better to be deleted.

    You can delete data from SQL also and then try to delete.

  • snoppy Profile Picture
    snoppy 4,818 on at
    RE: Table cannot be compiled

    I tried to import the codeunit from the old system, and after compiling the table again, it showed more codeunits were not there. I imported around 10 codeunits, and then compiled the last time, but it showed different error, which required to declare a global variable.

    I tried to delete the document table, but had Delete Errror: It is not possible to delete a table definition (the document table) if there are records in the table.

    Delete all records in the table for all companies before deleting the definition.

    I tried to run the table, but had Run Error: The object table Document must be saved in  compliled form before it can be run.

    Thank you!

  • snoppy Profile Picture
    snoppy 4,818 on at
    RE: Table cannot be compiled

    Do we need to convert that specific codeunit from version 4.0 to 2013?  How to remove the codeunit?

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Table cannot be compiled

    import the missing codeunit from the old system or remove, if possible, the usage of the codeunit in the table and recompile.

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,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,399 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans