'Invalid GTIN' Error in Google Merchant Center: How to Fix It on Shopify
Short answer: "Invalid value [GTIN]" means Google received a barcode from Shopify but it failed validation — almost always because the check digit is wrong, the length isn't a valid GTIN length (8, 12, 13, or 14 digits), or the value isn't a real barcode at all (a SKU, an ISBN typed wrong, or a made-up number). Fix it by putting the correct, complete barcode in each variant's Barcode field in Shopify, or — if the product genuinely has no barcode — clearing the field and marking it a custom product so Google stops expecting one.
This error is different from "missing GTIN." Here Google did get a value; it just doesn't pass the math. Here's how to find the bad ones and fix them.
What makes a GTIN "invalid"
A GTIN (the manufacturer's barcode — UPC, EAN, or ISBN) has to satisfy a few hard rules, and Google checks all of them:
- Valid length. A GTIN is 8, 12, 13, or 14 digits. A 11-digit UPC that lost its leading zero, or a 13-digit number with an extra character, both fail.
- A correct check digit. The last digit is a checksum computed from the others (the GS1 algorithm). If someone transposed two digits or mistyped one, the check digit no longer matches and Google rejects it as invalid — even though it looks like a barcode.
- Not a restricted or fake range. Numbers in the "restricted distribution" range (often starting 02, 04, or 2) are in-store codes, not real GTINs. Invented numbers almost always land here or fail the checksum.
- Digits only. No spaces, dashes, letters, or a trailing
.0from a spreadsheet export.
Why it usually happens on Shopify
- A spreadsheet dropped the leading zero. Exporting products to CSV and back often turns
012345678905into12345678905— now it's 11 digits and invalid. Re-enter the full number with the leading zero. - The SKU got pasted into the Barcode field. A SKU is your internal code and is never a valid GTIN. It will almost always fail the checksum.
- A typo during manual entry. One wrong or swapped digit breaks the check digit. The number looks right at a glance and still fails.
- A made-up barcode. Entered to "get past" the missing-GTIN error — this backfires, because invalid identifiers can trigger a policy warning on top of the disapproval.
The fix, step by step
1. Find which products are actually failing
In Merchant Center: Products → Needs attention (or Diagnostics), filter to the "Invalid value [GTIN]" issue, and note the affected items. That tells you which Shopify variants to correct instead of editing the whole catalog.
2. Enter the correct, complete barcode
For each affected variant: Product → Variants → edit the variant → Barcode. Type the full barcode exactly as printed on the package, including any leading zero. A 12-digit UPC stays 12 digits; a 13-digit EAN stays 13.
- Never invent a number — Google validates the check digit, so a fake one just fails again.
- Don't use the SKU, the MPN, or your own product code here.
- Remove any stray spaces, dashes, or
.0.
3. For products with no real barcode, don't fake one
Handmade, custom, private-label, and vintage items often have no manufacturer GTIN — and that's allowed. Clear the Barcode field and, in the Google & YouTube channel's Manage availability, set Custom product = True for those items. That tells Google not to expect a GTIN, and both the "missing" and "invalid" errors clear without a barcode. Supply a brand + MPN instead where you have them.
4. Re-sync and confirm
The Shopify feed re-pushes within a few hours (identifier changes can take up to ~3 days to fully reflect in Merchant Center). Confirm under Products → All products that the GTIN column shows the corrected value and the issue has cleared.
Validate every barcode before Google does. Feed Doctor runs the real GS1 check-digit math on each variant's barcode and flags exactly which ones are the wrong length, fail the checksum, or sit in a restricted range — so you fix the handful that are actually broken instead of guessing. Try it free for 7 days.
GTIN vs UPC vs EAN vs MPN
- GTIN is the umbrella term for the manufacturer's barcode.
- UPC (12 digits) is the North American GTIN; EAN (8 or 13 digits) is the European one; ISBN is the book GTIN.
- MPN (manufacturer part number) is a fallback identifier for branded products that have no GTIN — not a replacement when a GTIN exists.
- SKU is your internal stock code and is not accepted as any of these.
Stop losing sales to Google rejections
Feed Doctor scans your whole catalog and gives you the exact field to fix on every product.
Try Feed Doctor free for 7 days →