LIVE 2026/2027 MANDATE ENGINE: Germany XRechnung 3.0.2 • ZUGFeRD 2.3 • Belgium/EU Peppol BIS 3.0 • Saudi ZATCA Phase 2 • UAE PINT
Home › Official Error Catalog › BR-KSA-52
๐Ÿ‡ธ๐Ÿ‡ฆ Saudi ZATCA Phase 2 (Fatoora) • SEVERITY: FATAL • KSA Phase 2 Field Rule #52

How to Fix BR-KSA-52: KSA Phase 2 Field Rule #52

ZATCA Fatoora portal / SDK rejected the UBL 2.1 XML under rule BR-KSA-52 during Phase 2 Clearance or Reporting.

๐Ÿ“ Official Schematron Specification & XPath Diagnosis for BR-KSA-52

BR-KSA-52 โ€” BLOCKING REJECTION
Official Specification Rule
[BR-KSA-52] Saudi ZATCA Electronic Invoice XML Implementation Standard mandatory rule BR-KSA-52.
XPath: /ubl:Invoice
Deterministic Remediation (How to Fix)
Apply ZATCA Phase 2 UBL 2.1 extensions (UUID, ICV counter, PIH hash, 15-digit VAT TIN, National Address, and 9-tag TLV QR) to clear BR-KSA-52.
โŒ REJECTED XML STRUCTURE (TRIGGERS BR-KSA-52)
<!-- ZATCA Fatoora SDK Rejection: BR-KSA-52 -->
โœ… COMPLIANT XML STRUCTURE (BR-KSA-52 FIXED)
<!-- ZATCA Phase 2 Compliant UBL 2.1 Node (BR-KSA-52 CLEARED) -->

โšก Repair BR-KSA-52 in Your Invoice Right Now:

Standard Normativo di Destinazione:

๐Ÿ“„ Trascina qui la tua fattura PDF, XML o CSV

Nessuna registrazione per lโ€™analisi โ€ข Elaborazione sicura โ€ข Compatibile con Stripe, Fatture in Cloud, TeamSystem, SAP & Xero

๐Ÿ› ๏ธ Editor Auto-Fix

1. Document Header & Routing Identifiers XRECHNUNG 3.0.2
2. Seller Party & Mandatory Contact (BG-4 / BG-6 / BR-DE-2) BT-27 .. BT-43
3. Buyer Party & Peppol Endpoint (BG-7 / R010) BT-44 .. BT-55
4. Line Items & EN 16931 Mathematical Reconciliation (BR-CO-10 .. 16) BG-25 / BG-22

๐Ÿ›ก๏ธ Report Validazione EN 16931

AUDITING...
Checking Official Schematron Rules...
Validating EN 16931, KoSIT, Peppol BIS 3.0 & ZATCA Phase 2
--%

Related Saudi ZATCA Phase 2 (Fatoora) Validation Rules

BR-KSA-03

KSA-1 (UUID / Universally Unique Identifier)

[BR-KSA-03] The invoice must contain a unique identifier (UUID) (KSA-1) given by the machine that issued the document matching RFC 4122 format.

Fix BR-KSA-03 →
BR-KSA-06

KSA-2 (Invoice Sub-Type Code / NNPNESB)

[BR-KSA-06] The invoice transaction code (@name attribute on cbc:InvoiceTypeCode) must exist and respect the 7-character pattern NNPNESB (e.g., 0100000 for Standard Tax Invoice or 0200000 for Simplified Invoice).

Fix BR-KSA-06 →
BR-KSA-08

BT-31 (Seller 15-Digit Saudi VAT Number)

[BR-KSA-08] Seller VAT registration number (BT-31) must consist of 15 digits, starting with 3 and ending with 3.

Fix BR-KSA-08 →
BR-KSA-09

Seller National Address (BuildingNumber, PlotIdentification, District, PostalZone)

[BR-KSA-09] Seller address must contain Street Name (BT-35), Building Number (KSA-17), City (BT-37), Postal Code (5 digits, BT-38), District (KSA-3), and Country Code (SA).

Fix BR-KSA-09 →
BR-KSA-27

KSA-14 (TLV Base64 Encoded QR Code)

[BR-KSA-27] The QR code (KSA-14) must be present and encoded in Base64 TLV (Tag-Length-Value) format containing Tags 1 to 9 for Phase 2.

Fix BR-KSA-27 →
BR-KSA-F-01

BT-2 (IssueDate ISO 8601 Format)

[BR-KSA-F-01] All dates MUST be formatted strictly as YYYY-MM-DD in the Gregorian calendar.

Fix BR-KSA-F-01 →
BR-KSA-01

KSA Phase 2 Field Rule #1

[BR-KSA-01] Saudi ZATCA Electronic Invoice XML Implementation Standard mandatory rule BR-KSA-01.

Fix BR-KSA-01 →
BR-KSA-02

KSA Phase 2 Field Rule #2

[BR-KSA-02] Saudi ZATCA Electronic Invoice XML Implementation Standard mandatory rule BR-KSA-02.

Fix BR-KSA-02 →
BR-KSA-04

KSA Phase 2 Field Rule #4

[BR-KSA-04] Saudi ZATCA Electronic Invoice XML Implementation Standard mandatory rule BR-KSA-04.

Fix BR-KSA-04 →
INSTANT SELF-SERVE ACTIVATION โ€ข NO SALES CALLS

Zero chiamate commerciali. Attivazione immediata.

Sblocca subito i pagamenti fermi per fatture rifiutate da clienti esteri o PA.

Single Emergency Fix

Pass Emergenza Singola Fattura

$19 una tantum

Converti e ripara subito 1 fattura bloccata. Nessun abbonamento.

  • โœ… Convert 1 PDF/CSV or Repair 1 Rejected XML
  • โœ… Full KoSIT, EN 16931, Peppol & ZATCA Validation
  • โœ… Download Certified UBL 2.1 XML + Hybrid ZUGFeRD PDF/A-3
  • โœ… Includes ZATCA Phase 2 TLV QR & Leitweg-ID Check
Sblocca Fattura ($19) โ†’
For Tax Advisors & High Volume

Hub Commercialisti & Multi-Azienda

$199 / mese

Partite IVA illimitate, API Webhook e Portale Verifica Fornitori personalizzato.

  • โœ… Unlimited Client VAT / Tax Registration IDs
  • โœ… Up to 2,500 Conversions & Validations / month
  • โœ… Full REST Webhook API (Stripe, Make, Zapier, n8n, SAP)
  • โœ… Branded Supplier Compliance Gate Portal for Vendors
Attiva Hub Studio ($199/mese) โ†’