Validate a ZATCA XML file for free · ZATCA error codes

ZATCA BR-KSA-03: UUID (KSA-1) missing or invalid

BR-KSA-03 · Error

[BR-KSA-03]-The invoice must contain a unique identifier ("UUID") (KSA-1) given by the unit that issued the document (unique message identifier for interchange process). This value must contain only letters, digits, and dashes.

Official rule text: ZATCA e-invoice validation rules (official SDK XSL, 20210819).

The official rule requires a unique identifier (UUID, KSA-1) given by the unit that issued the document — a unique message identifier for the interchange — containing only letters, digits and dashes.

In UBL this is cbc:UUID. A typical UUID looks like 8d487816-70b8-4ade-a618-9d620b73814a. Empty values, spaces, slashes or a missing element fail the rule. Your ZATCA-onboarded e-invoicing solution (EGS) must assign a new UUID to every document; Valifakt drafts generate one for test files only and are not cleared or reported.

Valifakt is not a ZATCA-onboarded solution and this page is not tax advice.

What characters are allowed?

The official text: letters, digits and dashes only.

Is a UUID required on simplified invoices too?

The official rule says the invoice must contain a UUID (KSA-1). It does not limit the document type in that sentence.

Does Valifakt clear the invoice?

No. Drafts are unsigned test files. Clearance and reporting are done by a ZATCA-onboarded EGS.

Related ZATCA rules

Validate a ZATCA XML file for free Pricing

Not tax advice. Valifakt is not a ZATCA-onboarded e-invoicing solution (EGS). Official rule text is quoted from the ZATCA SDK validation-rules XSL.