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:

The same response posts before the upgrade and causes a hold after it The same engine response read by the old and the new adapter (illustrative). Nothing in the configuration or the response changed. Only the code that reads the answer did.
  • 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

The routine starts before go-live and feeds the next upgrade The whole routine on one page. The issue log from the daily review is what the next upgrade starts from.
  • 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
  1. 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".
  2. 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.
  3. Diff test against production. Make sure you are testing the configuration you will run. See Your fix works in test but not in production.
  4. 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

The day-one comparison catches cases where the tax matches and the posting does not A day-one comparison of the regression pack against the pre-upgrade baseline (illustrative). Compare the outcome as well as the tax amount: two of these rows have the same tax and still fail.
  • 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

CheckHowWhy
New tax holdsAP and AR hold reports, filtered to holds placed by the tax integrationHolds are the first sign of response-handling changes
Posting errorsBlocked billing documents, documents not released to accountingA missing tax line shows up here, not in the engine
Partial-success responsesQuery the adapter log for partial-success or warning flagsSilent zero-tax results
Tax by jurisdiction against last monthEngine report or ledgerCatches rate and content changes
Every incidentOne line in an issue log: symptom, cause, fixTurns one-off fixes into the next upgrade’s checklist
One line per incident becomes the checklist for the next upgrade An issue log from the daily review (illustrative). One line per incident is enough, as long as every line ends in a decision about the regression pack.
  • 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.