How to diagnose an unexpected tax result
When an invoice shows the wrong tax, the fastest route to the cause is a fixed order of checks: confirm the facts, read the request, then work through data, integration, configuration and content. Worked in that order, the checks usually land on one of twelve common causes.
By Herb Park, Clarent Technologies
A ticket arrives: "Tax on invoice 90012345 is wrong." The pressure is to open the tax engine and fix it. Resist that. Changing configuration before you know the cause is how one wrong invoice becomes three hundred. The triage below works with any combination of ERP and tax engine.
1. Pin down the facts
Before looking at any system, write down what the tax should have been and why. Which entity sold or bought what, shipped from where to where, on what date, to whom, with what exemption status? Surprisingly often, this step resolves the ticket: the tax was right and the expectation was wrong, or the business facts were not what the system was told.
2. Get the request and the response
Pull the engine’s record of the call for that document: the request the ERP sent and the result the engine returned. Most engines keep this in an audit or transaction log; most ERP integrations have their own log as well. Check that you are looking at the right call. A document may have been calculated several times (order, delivery, billing, a re-price), and only one of them matters.
- Logged: 2026-10-12 09:14; Call point: Order; Document: 90012345; Lines: 2; Total tax: 99.33
- Logged: 2026-10-14 16:02; Call point: Delivery; Document: 90012345; Lines: 2; Total tax: 99.33
- Logged: 2026-10-15 08:40; Call point: Re-price; Document: 90012345; Lines: 2; Total tax: 99.33
- Logged: 2026-10-15 08:41; Call point: Billing; Document: 90012345; Lines: 2; Total tax: 51.93
- 4 calls found for this document
- (1) The billing call is the one behind the invoice. Open its request and response.
- (2) The call just before it returned a different total, so compare the two requests.
3. Compare the request with the facts
Go field by field. Is the ship-from the actual shipping location? Is the ship-to complete, with a valid postal code? Is the product code the one you expect, and is it mapped? Is the date the one that should drive the rate? Is the customer or exemption identifier present? Is the document type right: an invoice, not a credit; a sale, not a purchase?
If a field is wrong, the cause is upstream of the engine: in master data or in the integration. Fixing the engine would only hide it.
- Field: Document type; The facts: Sales invoice; In the request: SalesInvoice; Result: Match
- Field: Tax date; The facts: 2026-10-15; In the request: 2026-10-15; Result: Match
- Field: Ship-from; The facts: Houston plant, TX 77041; In the request: TX 77041; Result: Match
- Field: Ship-to; The facts: Denver, CO 80202; In the request: Denver, CO, no postal code; Result: Differs
- Field: Product code; The facts: MAT-55021; In the request: (blank); Result: Differs
- Field: Exemption; The facts: None; In the request: None; Result: Match
- 2 of 6 fields differ. The cause is in master data or the integration.
- (1) An incomplete ship-to. Look at the customer record first, then at how the integration builds the address.
- (2) No product code was sent, so the engine applied its default taxability.
4. Read the engine’s explanation
If the request is right, read the response in detail: which jurisdictions were found, which taxability rule or product category applied, whether an exemption or certificate was used, and whether any custom rule fired. Most engines return reason codes or a rule trace for exactly this purpose.
- Response, line 10: taxableAmount: 1200.00 totalTax: 34.80 jurisdictions: State rate 0.029 tax 34.80 City rate 0.00 tax 0.00 exemption: none applied reasons: Destination sourcing Product taxable Custom rule CR-014 fired: city tax set to zero
- (1) Which jurisdictions were found, and at what rate.
- (2) Whether an exemption or certificate was used.
- (3) A custom rule written for another case also matched this one. That is a configuration cause.
5. Classify the cause by layer
- Request matches the facts?: Step 3
- ERP record correct?: The data behind the field
- Your setup decided it?: Custom rule, mapping, certificate, registration
- Master data: Data owner
- Integration: ERP and integration team
- Configuration: Tax configuration owner
- Content: Vendor support case
| Layer | What it means | Where the fix belongs |
|---|---|---|
| Master data | The ERP record behind the request is wrong or incomplete | Data owner, with a process fix so it does not recur |
| Integration | The ERP had the right data but sent the wrong value or no value | ERP/integration team: mapping, user exits, add-on configuration |
| Configuration | The engine received the right facts but your setup produced the wrong answer | Tax configuration owner, through change control |
| Content | Vendor rates, boundaries or standard rules are wrong or not yet released | Vendor support case; a temporary rule only if approved and logged |
The twelve usual suspects
In practice, most unexpected results trace back to a short list. Check them roughly in this order:
- Ship-from address: the plant or warehouse address is missing, incomplete or not the actual shipping point.
- Ship-to address and jurisdiction: partial address, a postal code spanning several jurisdictions, or a one-time address entered by hand.
- Product mapping: the material or service code is not mapped, so a default taxability applied.
- Exemption: the certificate is missing, expired, for a different state, or not linked to this customer or ship-to.
- Registration and nexus setup: the entity is not set up to collect in this jurisdiction, or is set up with the wrong effective date.
- Document type mapping: a credit treated as an invoice, a purchase treated as a sale, or an intercompany document routed unexpectedly.
- Tax-inclusive pricing and rounding: gross vs. net amounts, or line vs. document rounding.
- Freight, discounts and other charges: sent as separate lines without a product code, or not sent at all.
- Credits and returns: calculated on today’s date or without reference to the original invoice.
- Date used for rate lookup: order date vs. invoice date vs. posting date around a rate change.
- Custom rules and overrides: a rule written for another case that also matches this one.
- Content timing: a legislative change effective before the vendor content release, or content shipped but not switched on.
6. Fix at the source, then prove it
Fix the cause in the layer where it lives, then re-run the original document in a test environment and confirm the result. Check whether other documents are affected: an unmapped product or a bad plant address rarely hits only one invoice. Decide with the tax owner whether past documents need correction.
7. Add the case to your regression pack
Every diagnosed case is a test you get for free. Add the scenario and its expected result to the regression pack so the next content release, ERP upgrade or configuration change proves it still works. Over time, this is how a tax technology team turns support tickets into a safety net.