It works in test and fails in production
A full test cycle passes, the buyer signs it off, and the first production punchout fails. Nothing changed on your side between the two.
Four things differ between environments and every one of them is invisible until go-live: the credentials and account identifiers, the endpoint URL the buyer stored, the breadth of the real catalogue, and the network path. The catalogue one catches the most people — test catalogues are curated subsets where everything is classified and priced, and production carries the long tail that nobody cleaned.
Causes, most likely first
Ordered by how often each one turns out to be the culprit, not by how interesting it is. Work down the list.
-
Production credentials differ and your lookup is keyed on one value
How to confirm: The production account identifier is not the test one. If you stored a single expected credential rather than resolving per environment, production cannot match.
Fix: Key the credential lookup on the identity and domain pair you receive, and configure both environments explicitly.
-
The buyer stored the wrong endpoint URL
How to confirm: Your production logs are empty while the buyer insists they are sending. Their production configuration still holds your test URL, or the reverse.
Fix: Give them both URLs in writing, labelled, and ask them to read back what is stored against each environment.
-
The real catalogue contains data the test subset did not
How to confirm: Most products work and a minority fail. Unclassified items, null descriptions, legacy characters and odd units all live in the long tail, and a curated test set has none of them.
Fix: Validate the entire catalogue offline before go-live rather than testing a sample through the buyer. The failures are findable without them.
-
The network path is different
How to confirm: Production sits behind a WAF that staging does not, or the buyer sends from different egress addresses for production, or deployment protection was never lifted.
Fix: Request the production endpoint from outside your network before go-live. If you cannot reach it as a stranger, neither can they.
-
Scale that the test never exercised
How to confirm: Cold starts, exhausted connection pools, or a setup handler that was fast against fifty products and is not against fifty thousand.
Fix: Load the real catalogue into the test environment. A test that is easier than production has told you very little.
If it is not on your side
Ask for three things at once: the production account identifier, the endpoint URL stored against it, and which user group the failing shopper belongs to. Comparing each against its test equivalent finds the difference faster than reasoning about it, and one of the three is nearly always the answer.
Check the document itself
Before chasing “It works in test and fails in production” further, paste the cXML or OCI payload into our free tester. It runs in your browser and reports the structural problems buyers reject on. The interactive demo plays the whole round trip from the buyer's seat.
Open the tester Play the demoRelated questions
Should the test environment use production data?
It should use production-shaped data. The point is not volume for its own sake but the awkward records — the unclassified, the un-priced, the ones with a character nobody expected. A clean test catalogue tests your happy path and nothing else.
How do we test the long tail without the buyer?
Validate the whole catalogue against the document rules offline. Our free tester covers the structural half of it, and a scripted pass over every product finds the data half before a buyer ever sees it.
Rather not be the one debugging this?
A free PunchOut shop runs the PunchOut round trip for you: upload from Excel, test it, invite your buyer.
Start free Send us the error