FeedMender
40063813390check digit
The last digit is computed from the ones before it. Get one wrong and the whole number fails.

FeedMender/Help center/Barcodes and the check digit

Identifiers

Your barcodes look fine and still fail the check digit

A barcode that reads at the till can still be rejected by Google. The number is the right length and all digits, and it is still wrong, because the last digit is not part of the code. It is a sum of the others, and Google does the arithmetic.

A GTIN, the number behind the barcode, is not just a label. Its final digit is a checksum: take the digits before it, weight them, add them up, and the last digit is whatever makes the total come out even against a fixed rule. That is deliberate. It lets any scanner catch a number that was mistyped, because a single wrong or swapped digit almost always breaks the sum.

Why a valid-looking number is still wrong

Start with the eleven digits 07123456789. Multiply its digits from right to left by 3, 1, 3, 1 and so on. The weighted sum is 102. Add 8 to reach 110, the next multiple of ten. The resulting twelve-digit number is 071234567898.

Changing the final digit from 8 to 9 leaves a number of the right length that fails the checksum. Dropping a leading zero can leave an exported value with an invalid length. Google’s GTIN specification

The other half of the problem

Sometimes the number is not wrong, it is borrowed. A GTIN copied from a supplier sheet, reused across a variant that should have its own, or invented to fill a required-looking column, will often pass the checksum and still not describe your product. That is worse than a missing one, because it points Google at the wrong item.

How to fix it without inventing anything

Check the packaging or manufacturer’s catalogue to confirm which number belongs to your product. If the export damaged the value, re-export it as text. If the product genuinely lacks identifiers, follow the declaration rules for its category. Fix an invalid GTIN · Resolve an identifier_exists warning

A scan runs the check digit on every identifier in the file, separates the truly invalid from the merely missing, and, because an export tends to break them the same way each time, tells you whether it is a scatter of typos or one systematic fault to fix at the source.

Check your identifiers

A free scan runs the check digit on every GTIN and tells you which fail and why, before anything is asked of you.

Scan your feed

More in the Help center.