Troubleshooting

Some lines are missing from the returned cart

The cart returns and the buyer sees fewer lines than the shopper selected. No error anywhere, on either side.

Short answer

Lines disappear rather than erroring when they fail a filter that was never meant to be visible — in your serialiser, in the document, or in the buyer’s import. Before investigating anything, check what the missing lines have in common: a product type, a zero price, an absent classification, a character in the description. They nearly always share something, and that something is the diagnosis.

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.

  1. The buyer’s import dropped the line rather than rejecting the cart

    How to confirm: The missing lines are the ones with incomplete data. Platforms differ sharply here — Coupa discards the whole cart over one bad line, while others quietly import what they can.

    Fix: Validate every line before posting. The silent-drop behaviour is why a cart that "works" on one platform can be quietly wrong on another.

  2. Your serialiser skipped lines with a null field

    How to confirm: A guard that skips a line rather than failing on it — often added deliberately to stop a null crashing the export, and then forgotten.

    Fix: Fail loudly at the point of serialisation instead. A cart that cannot be built correctly should not be posted at all.

  3. Duplicate line numbers

    How to confirm: Two lines sharing an index, of which one arrives. Usually the same product added twice with different options, where the line number derives from the product rather than the position.

    Fix: Number lines by position in the cart, from 1, with no reuse.

  4. Zero price or zero quantity lines are filtered

    How to confirm: Free samples, included accessories, or lines whose quantity is computed. Several buyer systems discard them on import.

    Fix: Agree how zero-price items should be represented. Some buyers want them at a nominal value, some want them excluded, and almost none want them at zero.

  5. Bundle or configurable products did not expand

    How to confirm: The parent line arrives and its components do not, or the reverse. Your checkout understands the relationship and the document does not express it.

    Fix: Decide whether a bundle is one line or several and emit it consistently. Buyers cannot infer the structure you meant.

If it is not on your side

Send the buyer the exact document you posted and ask which lines their system logged as received. Comparing what you sent against what they ingested separates a serialisation problem from an import problem in one step, and nothing you can see from your side does.

Check the document itself

Before chasing “Some lines are missing from the returned cart” 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 demo

Related questions

Why is there no error when a line is dropped?

Because dropping is a deliberate import behaviour, chosen so that one malformed line does not cost the shopper an entire basket. It is a reasonable trade and the cost of it is exactly this — a silent discrepancy nobody notices until the delivery is short.

Could the shopper have removed the items?

Check before escalating. Log the basket contents at the moment you build the return document, so that "the shopper changed their mind" and "we lost a line" stop being indistinguishable.

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