Knowledge CenterCommon ZATCA Errors

Common ZATCA Errors & Fixes

ZATCA's validation engine returns specific error codes with every rejected submission. Here are the errors merchants hit most often, what causes them, and exactly how to fix them.

BR-KSA-F-04All amounts must be positive

Cause

Credit note lines have negative amounts (e.g. –500 SAR). Many accounting systems automatically negate refund lines.

Fix

Use positive amounts on credit notes. The document type code 381 tells ZATCA this is a credit — you don't negate the numbers. See the Credit Notes guide for details.

BR-KSA-69Zero-rated breakdown missing exemption reason code

Cause

A TaxSubtotal with category Z (zero-rated) doesn't include a TaxExemptionReasonCode and TaxExemptionReason element.

Fix

Add the appropriate VATEX code to every zero-rated TaxSubtotal. For exports, use VATEX-SA-32. See the VAT Categories guide for the full list.

BR-KSA-63Mandatory buyer address fields missing (SA buyer)

Cause

The buyer's country is SA but the invoice is missing one or more of: street name, building number, postal code, city, district.

Fix

Include all buyer address fields for Saudi-registered buyers. Collect the district (حي) and building number in addition to street and city.

BR-KSA-F-06-C28Buyer address field length violation

Cause

Typically the buyer's District field is empty (0 characters). Minimum is 1 character, maximum is 127.

Fix

Ensure the District field contains at least 1 character. This error usually accompanies BR-KSA-63.

BR-KSA-EN16931-03Allowance/charge amount doesn't match base × percentage

Cause

An AllowanceCharge element includes both a BaseAmount and an Amount, but no MultiplierFactorNumeric percentage. ZATCA requires the percentage when a base amount is provided.

Fix

For fixed-amount discounts, omit the BaseAmount element entirely — include only the Amount. Or supply all three: BaseAmount, MultiplierFactorNumeric, and Amount.

XSD_ZATCA_INVALIDSchema validation failed — element out of order

Cause

The UBL 2.1 XML schema is strict about element ordering. A common case: BillingReference appearing after AdditionalDocumentReference on credit notes.

Fix

BillingReference must come before AdditionalDocumentReference in the invoice XML. Review the UBL 2.1 element ordering in the ZATCA implementation standards.

invalid-invoice-hashInvoice hash doesn't match submitted XML

Cause

The hash in the QR code or signature doesn't match a SHA-256 of the canonical XML. Usually caused by whitespace differences, encoding issues, or element reordering after the hash was computed.

Fix

The hash must be computed on the exact byte sequence of the canonicalized XML before any further modification. Saudi VAT Pro handles this automatically.

BV-000001Duplicate invoice reference

Cause

The orderReference or invoiceNumber has already been submitted with a different UUID.

Fix

Every invoice must have a globally unique orderReference. Don't reuse references from cancelled or failed invoices — generate a new unique one.

Related: ZATCA Phase 2 Overview

Understand the clearance, signing, and ICV/PIH chain requirements that these errors relate to.

Read guide

Tool: VAT Calculator

Quickly check the VAT amount on any invoice amount with Standard (15%), Zero-rated, Exempt, or Out of Scope categories.

Open tool

Let Saudi VAT Pro handle it

Saudi VAT Pro generates fully compliant UBL XML, so you never have to debug BR-KSA error codes manually.

Start Free Trial