Validate a ZATCA XML file for free · ZATCA error codes
ZATCA BR-KSA-04: issue date (BT-2) not in the future
BR-KSA-04 · Error
[BR-KSA-04]-The document issue date (BT-2) must be less or equal to the current date.
The official rule: the document issue date (BT-2) must be less or equal to the current date.
Official test (UBL XPath), context cbc:IssueDate: the value has 10 characters and matches a calendar date in YYYY-MM-DD form (including a leap-day check in the compiled SDK XSL), and xs:date(.) <= current-date().
Common causes
- The issue date is tomorrow or later (a timezone mix-up, a typo, or a placeholder).
- The value is not a valid calendar date, or uses a format other than
YYYY-MM-DD. - The element is present but empty.
The snippet uses a date that is not in the future relative to this page’s publication. “Current date” is evaluated when the official validator runs, not when the file was drafted. Valifakt is not a ZATCA-onboarded EGS. This page is not tax advice.
<cbc:IssueDate>2026-11-30</cbc:IssueDate>Which element is BT-2?
cbc:IssueDate on the invoice (or credit note) root.
What date format is tested?
The compiled SDK test expects a 10-character YYYY-MM-DD calendar date, then checks it is not after the current date.
Can the date be today?
Yes. The official text is less or equal to the current date.
Related ZATCA rules
- BR-KSA-03 – Invoice UUID (KSA-1) missing or invalid
- BR-KSA-08 – Seller identification (BT-29) missing or wrong scheme
- BR-KSA-26 – Previous invoice hash (PIH, KSA-13) is not base64 SHA-256
- BR-KSA-27 – QR code (KSA-14) missing or not base64Binary
- BR-KSA-39 – Seller VAT number (BT-31) missing
- BR-KSA-40 – Seller VAT number (BT-31) is not 15 digits starting and ending with 3
- BR-KSA-06 – Invoice transaction code (KSA-2) missing or invalid
- BR-KSA-17 – Credit or debit note missing the reason (KSA-10)
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.