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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

error AL0132: 'Record "Tax Area"' does not contain a definition for 'Country/Region'

(0) ShareShare
ReportReport
Posted on by 112
The code snippet is:- 
var 
     TaxArea: Record "Tax Area";
     if "Tax Area Code" <> '' then begin
                    TaxArea.GET("Tax Area Code");
                    case TaxArea."Country/Region" of   //3
                        TaxArea."Country/Region"::US:  //4
                            TotalTaxLabel := Text005;
                        TaxArea."Country/Region"::CA:   //6
                            begin
                                TotalTaxLabel := Text007;
                                TaxRegNo := CompanyInformation."VAT Registration No.";
                                TaxRegLabel := CompanyInformation.FIELDCAPTION("VAT Registration No.");
                            end;
                    end;
I have issue regarding the line no. 3,4 & 6.
It displays that the 'Record "Tax Area"' does not contain a definition for 'Country/Region'.
How can I get the country code from the Tax Area record?
  • Suggested answer
    Olister Rumao Profile Picture
    4,009 on at

    Hi Rana,

    It is not clear what exactly you are trying to accomplish.

    We do have your code but we cannot make a judgement as to what is your exact requirement.

    Thanks

  • stableVertigo Profile Picture
    10 on at

    It is pretty clear what he was trying to accomplish...

    Business Central used to have a field in the "Tax Area" called "Country/Region". Now that BC has removed the field, what is the alternative to his code above?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 570 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 390 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 220 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans