Skip to main content

Notifications

Business Central forum
Suggested answer

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

Posted on by 2,979
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 60,859 Super User 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 10,187 User Group Leader 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 60,859 Super User 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 10,187 User Group Leader 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 4,312 User Group Leader 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

Helpful resources

Quick Links

Take the Community feedback survey!

Answer this brief 15-question survey about your Community experience…

Demystifying Copilot: Service Edition with Sundar Raghavan

Sundar answers more questions about Copilot for Service...

Dynamics 365 Business Central vs Finance and SCM

Take a look at the key differences between Business Central and…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,377 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,308 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans