Skip to main content

Notifications

Announcements

No record found.

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,983
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
    YUN ZHU 76,221 Super User 2024 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
    Saurav.Dhyani 14,178 Super User 2024 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
    YUN ZHU 76,221 Super User 2024 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
    Saurav.Dhyani 14,178 Super User 2024 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
    Mohamed Amine Mahmoudi 11,955 Super User 2024 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans