BR-KSA-04: Issue date must not be in the future

Explained by Matheel from ZATCA's rule text and the condition SDK 3.4.8 executes · Updated

Error: the invoice is rejectedAll invoicesFields: BT-2

cbc:IssueDate (BT-2), when it is a valid date, must be on or before the current date at the time of validation.

How to fix it

Set cbc:IssueDate to the actual issue date in YYYY-MM-DD format, e.g. <cbc:IssueDate>2022-09-07</cbc:IssueDate>, never a later date.

ZATCA's official text

[BR-KSA-04]-The document issue date (BT-2) must be less or equal to the current date.
Source: ZATCA SDK 3.4.8 · ZATCA KSA rules

Fails when (the condition ZATCA's SDK runs)

((. castable as xs:date ) and normalize-space(.)!='') and xs:date(.) > current-date()

Related rules

Validate your invoice against ZATCA's rules

Paste the XML and see every error and warning. It runs in your browser; the invoice goes nowhere.

Validate an invoice or try Matheel