checkDigit
The last digit of the number in the barcode is wrong.
| Level | fail |
| Applies to | EAN-13, UPC-A, EAN-8, UPC-E, ITF-14; the GTIN (01) or SSCC (00) in GS1-128, GS1 DataBar, GS1 DataMatrix and GS1 QR Code; the GTIN in a GS1 Digital Link |
| Needs a print size | no |
What it means
The last digit of a GTIN or SSCC is calculated from the digits before it. Here the digit in the barcode is not the one the calculation gives, so the number was mistyped or the barcode was made from the wrong number. The report says which digit it should be.
Why scanners care
A scanner does the same calculation and rejects the code when it doesn't match. At a till the pack won't scan at all.
How to fix it
- Take the number from the source: the GS1 licence, the product data sheet, the retailer's listing.
- Regenerate the barcode from that number. Don't edit the digits under the bars by hand: the bars must change too.
- If the report's suggested digit makes the number match your records, a single digit was mistyped. If not, the whole number is wrong.
Threshold
| Check | Rule | In the code |
|---|---|---|
| GS1 modulo 10: weights 3, 1, 3, ... from the right, check digit brings the sum to a multiple of 10 | must match exactly | src/rules/symbols.ts |
| A symbol ZXing rejects with a checksum error | kept and reported only when the bars decoded in full and the recomputed digit differs | src/rules/evidence.ts:70 |
Check digits of other keys inside GS1 data, such as a GLN in (414), are reported under symbology.
Spec
GS1 General Specifications, Release 26.0, §7.9.1. Full table: spec map, checkDigit.