Skip to main content

Notifications

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 2,997
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.
 
 
 
  • Suggested answer
    YUN ZHU Profile Picture
    81,757 Super User 2025 Season 1 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,314 Super User 2025 Season 1 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
    81,757 Super User 2025 Season 1 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,314 Super User 2025 Season 1 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
    22,108 Super User 2025 Season 1 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,251 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,984 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans