web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

AL Compilation error: "The namespace 'TableName' is unknown" when creating a flowfield

(1) ShareShare
ReportReport
Posted on by 3,001
So I create an extension with a table object. Then I want to add a flowfield to the /Sales invoice Header/ based on this new table, and I get compilation error /The namespace 'TableName' is unknown/ (AL0791), so I can't compile my extension. Any ideas? I've noticed this only happens when calcformula es /count/ or /exists/; if I use sum, there is no compiler error.
 
 
 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    89,835 Super User 2025 Season 2 on at
    AL Compilation error: "The namespace 'TableName' is unknown" when creating a flowfield
    Hi, I briefly summarized it, and I hope the following information can give you some tips.
    Dynamics 365 Business Central: The namespace ‘xxxx’ is unknown in CalcFormula Property
     
    Thanks.
    ZHU
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,330 Super User 2025 Season 2 on at
    AL Compilation error: "The namespace 'TableName' is unknown" when creating a flowfield
    Hi,
     
    It seems a bug, I would recommend reporting it to Microsoft.
     
    Regards,
    Saurav Dhyani
  • Suggested answer
    YUN ZHU Profile Picture
    89,835 Super User 2025 Season 2 on at
    AL Compilation error: "The namespace 'TableName' is unknown" when creating a flowfield
    I simply tested it and found that this problem does exist. .
     
    But since it is Count, if you remove the following "No." field, the error will disappear.
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,330 Super User 2025 Season 2 on at
    AL Compilation error: "The namespace 'TableName' is unknown" when creating a flowfield
    Hi,
     
    Check all objects in your extension.
     
    There seems an object where you have defined namespaces (it may happen if you use AZ/AL Extension to develop new objects).
     
    If you find namespace my table, remove that from that object.
     
    That should fix the problem.
     
    Regards,
    Saurav Dhyani
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,292 Super User 2025 Season 2 on at
    AL Compilation error: "The namespace 'TableName' is unknown" when creating a flowfield
    Hi @Ghetz,
     
    I think you must add a name space Microsoft.Sales.History.
    using Microsoft.Sales.History;
    Best regards,
    Mohamed Amine MAHMOUDI

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,899 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,444

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,304

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans