--- title: "Tax code not for entity type for Administrators - Payhawk Help Center" slug: "the-selected-tax-code-cannot-be-used-for-this-type-of-entity" description: "Fix the tax code cannot be used for this type of entity error in Oracle NetSuite: check the tax code is active and allowed for the record type, then retry." updated: 2026-04-15T13:57:29Z published: 2026-04-15T13:57:29Z canonical: "payhawk.com/the-selected-tax-code-cannot-be-used-for-this-type-of-entity" --- > ## Documentation Index > Fetch the complete documentation index at: https://payhawk.com/help/llms.txt > Use this file to discover all available pages before exploring further. # The selected tax code cannot be used for this type of entity. ## Error message ```plaintext The selected tax code cannot be used for this type of entity. ``` ## Affected ERP integrations - Oracle NetSuite ## Cause This error occurs when the tax code or tax group selected in the expense is not valid for the type of record being exported - for example, vendor bill, expense report, or journal entry. This error is returned by Oracle NetSuite when attempting to apply a tax code that is restricted or incompatible with the entity type. ## Solution To resolve this issue: 1. In Payhawk, open the expense showing the error. 2. Review the selected tax code or tax group. 3. Log in to Oracle NetSuite and verify: - Whether the tax code is active. - Whether the tax code is allowed for the type of transaction being created, such as vendor bill, expense report, and so on. - Whether there are any restrictions on the tax code's usage. 4. In Payhawk, change the tax code to a valid tax code or tax group that is compatible with the entity type. 5. Save the expense and retry the export. > [!TIP] > If you're unsure which tax code to use, contact your Oracle NetSuite Administrator to identify valid tax codes for the transaction type.