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.

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

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

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.