Suite Utils
Back to blog
NetSuite TipsOct 12, 2026 • 7 min read

Fix NetSuite Taiwan Country Display Issue

Learn how to resolve Taiwan country display issue in NetSuite, maintaining political sensitivity and improving customer experience.

Suite UtilsHow we write these guides
Fix NetSuite Taiwan Country Display Issue
On this page

NetSuite renders the country value Taiwan (Province of China) on transaction forms, printed PDFs, and customer-facing documents because the platform follows the ISO 3166-1 standard maintained by the ISO 3166 Maintenance Agency. That label is baked into the country select field on the Address record, and there is no native preference to override it globally. If your customer in Taipei receives a sales order or invoice showing "Province of China," the political sensitivity creates an immediate business problem, not a configuration preference.

Why the Label Exists and Where It Lives

The country dropdown on every address sublist pulls from the Countries setup table at Setup > Company > Countries. NetSuite ships with the ISO long name for Taiwan locked to Taiwan (Province of China). You cannot edit the label in the UI, and the internal ID TW maps to that exact string in the backend. The value propagates to:

  • Customer and vendor address sublists (addressbook sublist on customer, vendor)
  • Transaction shipping/billing address fields (shipaddress, billaddress on salesorder, invoice, purchaseorder)
  • Advanced PDF/HTML templates via the ship and bill address country merge fields
  • SuiteQL queries against address.country

Changing the ISO entry directly is not supported. The cleanest fixes sit at the presentation layer: Advanced PDF templates for printed output, and a lightweight SuiteScript for form display.

Option 1: Advanced PDF Template Override (Fastest, Zero Code Deployment)

If the problem is printed or emailed PDFs, invoices, packing slips, sales orders, fix it in the template. Open the Advanced PDF/HTML template (Customization > Forms > Advanced PDF/HTML Templates) and wrap the country merge field in a FreeMarker #if directive.

<#-- Replace the raw country merge field with this block -->
<#if record.shipaddress.country == "Taiwan (Province of China)">
  Taiwan
<#else>
  ${record.shipaddress.country}
</#if>

Do the same for record.billaddress.country if your template prints billing addresses. This approach:

  • Requires no script deployment or governance units
  • Survives bundle installs and Sandbox refreshes
  • Keeps the underlying data intact for reporting and integrations

Gotcha: If you have 20+ templates, you must edit each one. Use the Template > Search filter to find every template referencing ship and bill address country fields and batch-update them.

Option 2: SuiteScript 2.1 Client Script for Form Display (Scales Across All Records)

When the issue appears on the record form itself, sales order entry, customer edit, vendor bill, a client script on afterLoad can rewrite the display value in the address sublist without touching stored data. Deploy this to the transaction and entity record types where the address sublist renders.

/**
 * @NApiVersion 2.1
 * @NScriptType ClientScript
 * @NModuleScope SameAccount
 */
define(['N/currentRecord', 'N/log'], (currentRecord, log) => {

    const TAIWAN_ISO_LABEL = 'Taiwan (Province of China)';
    const DISPLAY_LABEL = 'Taiwan';

    function afterLoad(context) {
        // Client Script context.type values are strings: 'create', 'edit', 'view', 'copy', 'print', 'email'
        const allowedTypes = ['create', 'edit', 'view', 'copy'];
        if (!allowedTypes.includes(context.type)) {
            return;
        }

        const rec = currentRecord.get();
        // Address sublist ID is 'addressbook' on customer/vendor,
        // 'shippingaddress'/'billingaddress' on transactions
        const sublistIds = ['addressbook', 'shippingaddress', 'billingaddress'];

        sublistIds.forEach(sublistId => {
            const lineCount = rec.getLineCount({ sublistId });
            for (let i = 0; i < lineCount; i++) {
                const countryVal = rec.getSublistValue({
                    sublistId,
                    fieldId: 'country',
                    line: i
                });
                if (countryVal === TAIWAN_ISO_LABEL) {
                    rec.setSublistValue({
                        sublistId,
                        fieldId: 'country',
                        line: i,
                        value: DISPLAY_LABEL,
                        ignoreFieldChange: true // prevents dirty flag
                    });
                }
            }
        });
    }

    return { afterLoad };
});

Deployment steps:

  1. Save as cs_taiwan_country_display.js in the File Cabinet (SuiteScripts folder).
  2. Create a Script record (Customization > Scripting > Scripts > New):
  • Script Type: Client Script
  • Script File: select the uploaded file
  • Deploy to: Customer, Vendor, Sales Order, Invoice, Purchase Order, Return Authorization (add any custom transaction types that surface address sublists)
  1. Set Status: Released. No script parameters required.

Client scripts are metered on a per-script basis. It only mutates the in-memory display value, the saved record still posts Taiwan (Province of China) to the database, preserving integration compatibility. When you reference field IDs like country in SuiteScript, you're using the permanent internal identifiers that NetSuite Connector and SuiteTalk also rely on for programmatic access.

Option 3: Custom Address Field + Template Merge (Audit-Friendly Override)

If auditors or downstream systems require the stored value to read "Taiwan" (not just the printed output), add a custom field on the Address record and point templates at it.

  1. Create the field (Customization > Lists, Records, & Fields > Entity Fields > New):
  • Label: Display Country
  • ID: custrecord_addr_display_country
  • Type: Free-Form Text
  • Applies To: Address (select the Address record in the Applies To subtab)
  • Store Value: Checked
  • Default Value: leave blank
  1. Populate existing addresses with a one-time mass update (Lists > Mass Update > Mass Updates):
  • Criteria: Country = Taiwan (Province of China)
  • Set custrecord_addr_display_country = Taiwan
  1. Update Advanced PDF templates to prefer the custom field:
<#-- In your template, replace the country line with -->
${record.shipaddress.custrecord_addr_display_country?if_exists(record.shipaddress.country, '')}

The ?if_exists fallback ensures countries without the custom field still print the native value. New addresses created after the mass update will have a blank custom field, train AR/AP staff to fill it when the country is Taiwan, or add a User Event script (beforeSubmit) to auto-copy the corrected value:

/**
 * @NApiVersion 2.1
 * @NScriptType UserEventScript
 * @NModuleScope SameAccount
 */
define(['N/record'], (record) => {

    const TAIWAN_ISO = 'Taiwan (Province of China)';
    const CUSTOM_FIELD = 'custrecord_addr_display_country';

    function beforeSubmit(context) {
        if (context.type !== context.UserEventType.CREATE &&
            context.type !== context.UserEventType.EDIT) return;

        const rec = context.newRecord;
        const country = rec.getValue({ fieldId: 'country' });
        if (country === TAIWAN_ISO) {
            rec.setValue({ fieldId: CUSTOM_FIELD, value: 'Taiwan' });
        }
    }

    return { beforeSubmit };
})

Deploy this User Event script on the Address record type. It adds ~2 governance units per address save, negligible.

Which Fix to Choose

ScenarioRecommended FixEffort
Only PDFs/invoices look wrongOption 1 (FreeMarker #if)15 min
Form display + PDFs, many record typesOption 2 (Client Script)30 min
Stored data must read "Taiwan" for audit/EDIOption 3 (Custom Field + UE Script)1 hr

Most teams start with Option 1 for immediate relief, then layer Option 2 if sales reps complain about the form view. Option 3 is reserved for compliance mandates.

Edge Cases to Watch

  • OneWorld subsidiaries: The address sublist on the Subsidiary record uses the same country field. Add subsidiaryaddress to the sublistIds array in the client script if subsidiary forms are customer-facing.
  • SuiteCommerce/MyAccount: The site pulls the raw country value via the SCA API. If you need the corrected label there, override the address model in your theme (Address.Model.js) or use the custom field approach (Option 3) and map it in the SCA extension.
  • Saved Searches / SuiteAnalytics: Exported CSVs will still show the ISO label. Create a Formula (Text) column: CASE WHEN {country} = 'Taiwan (Province of China)' THEN 'Taiwan' ELSE {country} END for reporting.

The ISO label isn't going away, Oracle tracks the standard, not geopolitics. But the presentation layer is fully under your control. Pick the fix that matches the surface where the complaint landed, deploy it today, and move on.

Put these ideas to work.

Suite Utils builds small NetSuite utilities that fix the specific thing breaking your day. Each one runs as a native SuiteScript SuiteApp inside your account. No sales call, no onboarding.

Browse the utilities

Enjoyed this one?

Get NetSuite tips like this in your inbox. No spam. Practical guides only.

Keep reading