Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

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

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.
 
 
 
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,639 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 17,959 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 69,639 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 17,959 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 9,314 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans