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›ZPL0002

ZPL0002 — Missing ^XZ

A format is opened with ^XA but never closed. A printer keeps waiting for more data; the label may not print until the next job arrives.

SeverityError
CategoryStructure
Quick-fixavailable in the editor and VS Code

Label that triggers it

^XA^FO50,50^A0N,40^FDHELLO^FS

Finding: ZPL0002 · line 1:1 — Missing ^XZ — the label format is never closed

Open the broken label in the editor →

How to fix it

End the format with ^XZ. The quick-fix appends it at the end of the document, the only place where the intent is unambiguous.

Corrected label

^XA^FO50,50^A0N,40^FDHELLO^FS^XZ

Open the corrected label in the editor

Commands involved

^XZ

ZPL0001 Missing ^XA · ZPL0003 Nested ^XA · ZPL0004 ^XZ without ^XA

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