After a tax engine upgrade: a two-week validation routine
Engine and connector upgrades rarely break the obvious cases. They break the edge cases your configuration used to handle without anyone noticing. This is the routine we use for the first two weeks after go-live, and the patterns it usually catches.
By Herb Park, Clarent Technologies
Why upgrades break things you did not change
An engine upgrade usually arrives with a new connector or adapter version. Your configuration can be untouched and still behave differently, because the code that calls the engine and reads its answer has changed. The shifts we see most often:
- Responses that used to be accepted now cause holds. For example, lines flagged as "no tax" with no rate code: the old adapter posted them, the new one treats them as an error and places a hold. See the casebook entry.
- Partial results are handled differently. A line that used to post with zero tax now arrives with no tax detail at all, and the ERP cannot build a tax line. See the casebook entry.
- Content and rate updates land at the same time, so a genuine rate change looks like an upgrade bug, or the reverse.
- Before the upgrade: <Line id="1"> <NoTax>true</NoTax> <RateCode></RateCode> <TaxAmount>0.00</TaxAmount> </Line> Adapter: response accepted Result: posted with zero tax
- After the upgrade: <Line id="1"> <NoTax>true</NoTax> <RateCode></RateCode> <TaxAmount>0.00</TaxAmount> </Line> Adapter: no rate code on line 1 Result: tax hold placed
- (1) The rule flags the line as no tax and returns no rate code. This is identical on both sides.
- (2) The old adapter accepted the response and posted the line.
- (3) The new adapter treats a missing rate code as an error and places a hold.
Before go-live
- Before go-live: Fragile rules, regression pack, diff, owners
- Go-live
- Day one: Regression pack in production, adapter log check
- Days 2 to 14: Daily review of holds and posting errors
- After two weeks: Close the log, add patterns to the pack
- Next upgrade: Starts from that list
- Inventory the fragile rules. List every rule that sets no-tax or exempt flags, clears registrations, forces addresses, or depends on a country group such as "EU" or "non-EU".
- Extend the regression pack. Add exception scenarios, not just happy paths: foreign supplier, exempt customer, out-of-scope item, incomplete address, and every tax code the business expects to be 0%. See Building a tax regression test pack.
- Diff test against production. Make sure you are testing the configuration you will run. See Your fix works in test but not in production.
- Name the owners. Agree who triages tax holds for each ERP and region, and book a short daily review for the first two weeks.
Day one
- Run the regression pack in production with real document types (sales invoice, supplier invoice, credit, intercompany) and compare against the pre-upgrade baseline.
- Confirm the adapter log is capturing requests and responses, so the first incident can be investigated in minutes rather than hours.
- Scenario: Domestic sale, standard rate; Document type: Sales invoice; Baseline tax: 82.50; Tax now: 82.50; Outcome now: Posted
- Scenario: Exempt customer; Document type: Sales invoice; Baseline tax: 0.00; Tax now: 0.00; Outcome now: Posted
- Scenario: Foreign supplier, no tax flag; Document type: Supplier invoice; Baseline tax: 0.00; Tax now: 0.00; Outcome now: Tax hold
- Scenario: Incomplete ship-to address; Document type: Sales invoice; Baseline tax: 0.00; Tax now: (no tax detail); Outcome now: Posting error
- Scenario: Credit for an earlier invoice; Document type: Credit; Baseline tax: -82.50; Tax now: -82.50; Outcome now: Posted
- Scenario: Intercompany, 0% tax code; Document type: Intercompany; Baseline tax: 0.00; Tax now: 0.00; Outcome now: Posted
- 4 of 6 scenarios match the baseline
- (1) The tax is still zero, but the document is now on hold. A check on amounts alone would pass this row.
- (2) The line used to post with zero tax. Now the response carries no tax detail and the ERP cannot build a tax line.
Days two to fourteen: the daily review
| Check | How | Why |
|---|---|---|
| New tax holds | AP and AR hold reports, filtered to holds placed by the tax integration | Holds are the first sign of response-handling changes |
| Posting errors | Blocked billing documents, documents not released to accounting | A missing tax line shows up here, not in the engine |
| Partial-success responses | Query the adapter log for partial-success or warning flags | Silent zero-tax results |
| Tax by jurisdiction against last month | Engine report or ledger | Catches rate and content changes |
| Every incident | One line in an issue log: symptom, cause, fix | Turns one-off fixes into the next upgradeās checklist |
- Day: 1; Symptom: AP tax hold on foreign supplier invoices; Cause: No-tax flag returned with no rate code; Fix: Rule changed; In regression pack: Added
- Day: 2; Symptom: Billing document blocked, no tax line; Cause: Incomplete ship-to, partial-success response; Fix: Address corrected; In regression pack: Added
- Day: 5; Symptom: Tax up in one city against last month; Cause: Content update with a real rate change; Fix: None needed; In regression pack: Not needed
- Day: 9; Symptom: AR hold on an intercompany credit; Cause: Rule depends on a country group; Fix: Rule changed; In regression pack: Added
- (1) Each new pattern goes into the regression pack, so the next upgrade tests for it before go-live.
- (2) Some entries turn out to be correct behavior. Log them anyway: a content change that lands with the upgrade looks like an upgrade bug.
After two weeks
Close out the issue log, add every new pattern to the regression pack, and write up the fragile rules you changed and why. The next upgrade starts from that list instead of from zero.