Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

the tax code for the country/region has not been specified

(2) ShareShare
ReportReport
Posted on by 354

We are creating a new employee in suppliers but it gives me this error

1-the tax code for the country/region has not been specified

2-It is not possible to create a record in the table of tax identification numbers (NIF)(TaxVATNumTable). NIF:xxx-xxxxxxx-x, <User Name>. The record already exists.

  • CU25040250-0 Profile Picture
    2 on at
    the tax code for the country/region has not been specified

    Error 1: "The tax code for the country/region has not been specified"

    • What it likely means: The system you're using needs a specific tax code assigned to the employee's country (or the supplier's country if that's the context) in order to process things correctly. It's like the system needs to know what set of tax rules to apply.
    • Troubleshooting:
      • Double-check the employee/supplier setup: Make absolutely sure you've selected the correct country/region for the employee or supplier.
      • Tax setup: Look in the system settings for a section related to taxes. There should be a place where you define the tax codes that apply to each country. If the correct code isn't there or isn't associated with the country, that could be the problem.
      • Default settings: There might be a default tax code that needs to be set for the system overall. It's worth checking those global settings.

    Error 2: "It is not possible to create a record in the table of tax identification numbers (NIF)(TaxVATNumTable). NIF:xxx-xxxxxxx-x, 

    • What it likely means: The tax identification number (NIF in this case, which is common in some countries) you're trying to enter for this employee already exists in the system. Tax IDs are usually unique, so the system is preventing you from creating a duplicate.
    • Troubleshooting:
      • Search the system: Before creating a new employee, search the system for that specific tax ID. It's possible the employee already exists under a slightly different name or with a different spelling.
      • Data entry error: Double, triple-check that you're entering the tax ID correctly. Even a single wrong digit will cause this.
      • Data migration issue: If you recently migrated data from another system, there might be a problem with how the tax IDs were transferred.
      • System Bug: There's a chance its a bug that's preventing you from adding it.

    Why they might be related:

    It's possible that the system is trying to automatically generate a tax ID based on the country and other information you've entered. If the country isn't specified correctly (Error 1), that could be messing up the tax ID generation and causing it to try to create a duplicate (Error 2).

    Next Steps:

    1. Start with Error 1: Fix the tax code issue first. It might resolve the second error as a side effect.
    2. If Error 2 persists: Investigate the tax ID duplication issue separately. Search for the tax ID, double-check your data entry, and consider whether there might be a data migration problem.
    3. Consult Documentation/Support: If you're still stuck, definitely consult the system's documentation or contact their support team. These kinds of errors are often specific to the software you're using. Providing the software and version to the support team might help them to quickly help.

    Hope this helps! Let me know if you have any details about the system you're using – that might help me give more specific advice.

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    13,672 Super User 2025 Season 1 on at
    the tax code for the country/region has not been specified
    Hi,
    For the first point, please ensure that the vendor country ISO code is added under Country/Region parameters.

    Regarding the second point: this message indicates that you're attempting to create or override a record that already exists in the Tax exempt number table. If the number is already present, you can simply assign it to the relevant vendors or customers—there’s no need to create duplicate entries.
  • Suggested answer
    Saif Ali Sabri Profile Picture
    1,934 Super User 2025 Season 1 on at
    the tax code for the country/region has not been specified
    A clear and actionable solution to the errors you're encountering while creating a new employee as a supplier in Dynamics 365 Finance and Operations (D365FO):

    🔴 Error 1: "The tax code for the country/region has not been specified"
    Cause:
    This error typically appears when the country/region associated with the address of the supplier (employee) is missing a tax code setup in the Tax Parameters.
    Solution:
    1. Navigate to:
      Tax > Setup > Sales tax > Tax code per country/region
    2. Action:
      • Click New to create a tax code setup.
      • Select the Country/Region (e.g., USA).
      • Specify a default Tax code (even if tax-exempt, this is required).
      • If you're dealing with tax exemption, make sure to associate a tax group that reflects the exemption.
    3. Optional (for tax-exempt entities):
      • Go to Accounts payable > Vendors > All vendors
      • Select your vendor (employee).
      • Under the Invoice and delivery tab, set the appropriate Tax group (e.g., TAX-EXEMPT).

    🔴 Error 2: "It is not possible to create a record in the table of tax identification numbers (NIF)... The record already exists."
    Cause:
    The Tax Identification Number (TIN/VAT number) you're trying to use is already assigned to another vendor, customer, or employee.
    Solution:
    1. Check if the NIF already exists:
      • Go to Tax > Inquiries and reports > Tax registration numbers
      • Search for the NIF (e.g., xxx-xxxxxxx-x) you're trying to assign.
    2. If found:
      • Determine where it’s used (vendor, customer, employee).
      • If it’s valid and should be shared, link the same NIF across relevant entities only if business rules allow.
      • If not valid for reuse, consider generating a new unique NIF.
    3. Avoid duplication:
      • Never assign the same NIF to different legal entities unless required and supported by your local tax laws.

    Additional Notes:
    • For USA tax-exempt entities, ensure you’ve set up the sales tax exemption codes correctly under:
      • Tax > Setup > Sales tax > Sales tax exemptions
    • If using global address book records (common across vendors/employees), duplication of NIF across party roles can occur. Validate the party ID and roles before assigning.

    Let me know if you're working in a specific legal entity or need help adjusting global address book roles—this might also be influencing the NIF duplication error.
    Regards - Saif Ali Sabri, Whatsapp +923007960782 
  • CU07102250-0 Profile Picture
    8 on at
    the tax code for the country/region has not been specified
    I get the same problem, and it is not just for EU. I am trying to set up Tax exempt numbers for USA.

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,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans