BR-AG-05:IPSI invoice line VAT rate must be 0% or positive
When an invoice line uses the IPSI VAT category (M for Ceuta/Melilla indirect tax), the VAT rate must be 0 or greater than zero.
Engine Classification
Set VAT rate to 0% if negative for IPSI invoice lines per EN16931 BR-AG-05
Confidence: 92% · Applied automatically in pipeline
What is BR-AG-05?
BR-AG-05 is a fatal validation rule defined in the EN 16931 specification. It validates the Percent element under Item > ClassifiedTaxCategory in the UBL invoice XML.
When this rule fires, the invoice is non-compliant and will be rejected by Peppol access points and national validation services. The sending system receives a rejection response and the invoice does not reach the buyer.
Target path: //cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[cbc:ID='M']/cbc:Percent
Why This Error Matters
Invoice will be rejected. IPSI (Ceuta/Melilla indirect tax) transactions must follow specific rules for Spanish territory tax compliance.
BR-AG-05 is a hard failure. Invoices that trigger this rule are rejected at the access point and never reach the recipient. In Peppol networks, this means your sending system receives an MLR (Message Level Response) with a rejection status. The invoice must be corrected and re-sent, adding delay to your payment cycle.
Invoice Navigator can automatically correct this error in your pipeline. The fix is applied with full audit evidence, so your compliance trail remains intact.
Validator Behavior
- ·Causes invoice rejection
- ·Error returned: BR-AG-05
- ·Specification: EN 16931
How to Fix It
Identify IPSI invoice lines
Check VAT rate values
Fix negative rates
Validate the result
Before / After
<Invoice> <cac:InvoiceLine>INVALID_CODE</cac:InvoiceLine> </Invoice>
<Invoice> <cac:InvoiceLine>VALID_CODE</cac:InvoiceLine> </Invoice>
Technical Reference
//cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[cbc:ID='M']/cbc:PercentCommon Causes
- ·IPSI line item has negative VAT rate
- ·Incorrect rate entered for Ceuta/Melilla tax
- ·IPSI percentage field contains invalid value
- ·Rate calculation error for IPSI category
- ·Data entry error on IPSI tax rate
Seeing this in production? The API handles BR-AG-05 automatically. See the fix response →
See Also
Related Errors
Last updated: 27 February 2026
Handle BR-AG-05 Automatically in Your Pipeline
The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.