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,824

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
    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
    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
    60,232 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
    4,824 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
    4,824 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
    32,727 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans