errorUBL 2.1

UBL-CR-007:Disallowed element: cbc:PricingCurrencyCode

UBL invoices should have at most two TaxTotal elements (document and optional tax currency).

Severity
Fatal
Rule set
UBL 2.1
Country
All EU
Fix type
AUTO-FIX
Confidence
95%
Category
structural

Engine Classification

Remove disallowed UBL element per EN16931 specification

Confidence: 95% · Applied automatically in pipeline

What is UBL-CR-007?

UBL-CR-007 is a fatal validation rule defined in the UBL 2.1 specification. It validates the PricingCurrencyCode element 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: /Invoice/cbc:PricingCurrencyCode

Why This Error Matters

Invoice will be rejected by PEPPOL/EN16931 validators. Safe to remove - this element is explicitly prohibited and contains no required business data.

UBL-CR-007 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
  • ·Fails UBL schema validation
  • ·Error returned: UBL-CR-007
  • ·Specification: UBL 2.1

How to Fix It

1.

Check count

Maximum 2 TaxTotal allowed

2.

First TaxTotal

In document currency

3.

Second TaxTotal

Only if TaxCurrencyCode specified

Before / After

Failing XML
<Invoice>
  <cbc:PricingCurrencyCode>value</cbc:PricingCurrencyCode>
</Invoice>
Corrected XML
<Invoice>
  <!-- cbc:PricingCurrencyCode removed for EN 16931 compliance -->
</Invoice>

Technical Reference

XPath/Invoice/cbc:PricingCurrencyCode
SpecUBL 2.1
Operationremove
StrategyRemove disallowed UBL element per EN16931 specification

Code Example

<cac:TaxTotal>
  <cbc:TaxAmount currencyID="EUR">210.00</cbc:TaxAmount>
  <!-- TaxSubtotals here -->
</cac:TaxTotal>
<!-- Second only if different tax currency -->

Common Causes

  • ·Source ERP exports full UBL 2.1 instead of EN16931 subset
  • ·Generic UBL template includes optional elements not needed for e-invoicing
  • ·Conversion from another format added unsupported elements
  • ·Manual XML editing introduced non-standard elements
  • ·Invoice software not configured for EN16931 compliance

Seeing this in production? The API handles UBL-CR-007 automatically. See the fix response →

Commonly Seen In

Custom invoice generators

Frequently Asked Questions

UBL invoices should have at most two TaxTotal elements (document and optional tax currency).

Remove duplicate TaxTotal elements. You can also use Invoice Navigator's automatic Fixer tool to correct this instantly.

Yes, UBL-CR-007 is a critical error that will cause invoice rejection. It must be fixed before submission to ensure your invoice is accepted by the recipient's system.

Many instances of UBL-CR-007 can be automatically corrected using Invoice Navigator's Fixer tool. Upload your invoice and the tool will identify and fix common issues, including too many taxtotal elements.

UBL-CR-007 is commonly seen in exports from Custom invoice generators. These software packages sometimes generate invoices that need adjustment to meet full compliance standards.

See Also

Related Errors

Last updated: 27 February 2026

Share this guide:

Handle UBL-CR-007 Automatically in Your Pipeline

The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.