QR-02ErrorZATCA Security Features Implementation Standardimplemented
Valid TLV Framing & UTF-8 Text Decoding
Every TLV chunk must have a 1-byte tag, 1-byte length, and valid UTF-8 bytes for textual tags (1–7).
- Scope
- TLV Framing
- Applicable Invoice Types
- Standard (B2B), Simplified (B2C), Credit Note, Debit Note
- Catalog Version
- v1.0.0 (2026-11-23)
Typical Reason for Failure
Truncated payloads or Windows-1256 Arabic encoding instead of UTF-8 corrupt Tag 1 Seller Name.
Invalid Synthetic Example
Before (Fails)xml
0x01 0x05 <invalid-utf8>Corrected Synthetic Example
After (Fixed)xml
0x01 <utf8-byte-len> <utf8-bytes>Explanation of the Fix
Always encode Tag 1–5 strings as UTF-8 before computing byte length.
Official Source Reference
ZATCA Electronic Invoice XML Implementation Standard (Phase 2)
Open official specificationTest your invoice against QR-02 now
Browser quick check; raw XML is never stored.