Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›ZPL Lint Rules›ZPL4005

ZPL4005 — GS1 AI value has the wrong length

Some GS1 Application Identifiers have a fixed number of digits: 00 needs 18, 01 and 02 need 14, the date AIs 11 to 17 need 6 (YYMMDD), 20 needs 2 and 410 to 415 need 13. A value with fewer or more characters, or with non-digits, shifts every AI after it, so the scanner splits the data in the wrong places.

SeverityWarning
CategoryBarcodes

Label that triggers it

^XA^FO50,50^BY2^BCN,100,Y,N,N,D^FD(01)0950110153000^FS^XZ

Finding: ZPL4005 · line 1:32 — GS1 AI (01) needs 14 digits; the value given is 13 characters

Open the broken label in the editor →

How to fix it

Pad GTINs to 14 digits with leading zeros and write dates as YYMMDD. Variable-length AIs such as 10 (batch) and 21 (serial) are not checked.

Corrected label

^XA^FO50,50^BY2^BCN,100,Y,N,N,D^FD(01)09501101530003^FS^XZ

Open the corrected label in the editor

Commands involved

^BC

ZPL4001 Barcode without data · ZPL4002 EAN-13 data is not 12–13 digits · ZPL4003 GS1 data without GS1 mode (no FNC1) · ZPL4004 GS1 check digit is wrong · ZPL4006 GS1 check digit set by the printer

In CI

npx labelixa validate "labels/**/*.zpl" lints your files and prints this page's address next to each finding. /docs/cli

Lint your ZPL now