Cette page n'est pas encore disponible en Français ; vous lisez la version anglaise.

Troubleshooting punchout: the 15 most common errors and fixes

Symptom, cause, fix: the problems we see most often.

Sécurité, tests et exploitation Intermédiaire 2 min de lecture Relu le 27 nov. 2026
SymptomLikely causeFix
Setup fails with 401Wrong shared secret, wrong credential matched, test/prod mix-upLog which credential you matched (not the secret); check deploymentMode
Setup fails with 500Unhandled data (missing extrinsic, unknown ship-to)Treat optional data as optional; return a clear 4xx status for bad input
Buyer sees a blank pageStartPage URL blocked in a frame, or cookies rejectedSet frame-ancestors for the buyer's domain; cookies SameSite=None; Secure
User lands logged outSession token not consumed, or a redirect drops itMake the StartPage URL create the session, then redirect
Cart never arrivesForm posts to the wrong URL, or the BrowserFormPost URL was not storedPost to the stored URL; check for typos and encoding
Cart arrives but is rejectedInvalid XML, wrong DTD version, missing required elementValidate the PunchOutOrderMessage before posting
"BuyerCookie mismatch"Cookie not echoed exactlyEcho it byte for byte
Cart opens inside the catalog windowForm target wrongUse the target the buyer expects (OCI: ~TARGET, usually _top)
"Unit of measure not found"Unmapped unit codeMap to UN/CEFACT (cXML) or the buyer's SAP units (OCI). See units
Totals or prices wrongPrice unit, pack size or roundingAlign price basis; two decimals
Strange characters in descriptionsEncoding mismatchUTF-8 everywhere; escape XML; URL-encode form values correctly
Wrong approver or GL accountMissing or generic classificationAccurate UNSPSC per line
Edit opens an empty cartItemOut not read, auxiliary IDs not stableRebuild from ItemOut; see edit and inspect
OCI cart empty in SAPHOOK_URL missing or changed, field names wrongUse the HOOK_URL from the login; check NEW_ITEM-...[n] names
PO does not match cartPrice changed, lines splitStore cart price with auxiliary ID; agree price-change policy

Gather evidence first

For every failed session, keep the incoming request (with secrets removed), your response, the cart you posted, timestamps and the user's browser. Nine times out of ten the cause is visible in those four files.