errorUBL 2.1

UBL-CR-667:A UBL invoice should not include a Buyer Item Identification schemeID

UBL 2.1 Invoice schema does not include `cac:Item/cac:BuyersItemIdentification/cbc:ID/@schemeID`. This element must be removed for EN 16931 compliance.

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

Engine Classification

Remove disallowed UBL attribute per EN16931 specification

Confidence: 90% · Applied automatically in pipeline

What is UBL-CR-667?

UBL-CR-667 is a fatal validation rule defined in the UBL 2.1 specification. It validates the @schemeID element under BuyersItemIdentification > ID 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:Item/cac:BuyersItemIdentification/cbc:ID/@schemeID

Why This Error Matters

Invoice will be rejected by EN16931 validators. These conformance rules prohibit UBL attributes and element combinations not in the EN16931 e-invoicing profile. Remove the disallowed attribute or restructure the element.

UBL-CR-667 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-667
  • ·Specification: UBL 2.1

Before / After

Failing XML
<cbc:ID>
  <@schemeID>value</@schemeID>
</cbc:ID>
Corrected XML
<cbc:ID>
  <!-- @schemeID removed for EN 16931 compliance -->
</cbc:ID>

Technical Reference

XPath//cac:Item/cac:BuyersItemIdentification/cbc:ID/@schemeID
SpecUBL 2.1
Operationremove_attribute
StrategyRemove disallowed UBL attribute per EN16931 specification

Common Causes

  • ·BuyersItemIdentification ID contains schemeID
  • ·cbc:ID/@schemeID in buyer item ID not permitted
  • ·Scheme identifier on buyer product code not in EN16931
  • ·Only plain text buyer item identifier allowed
  • ·ERP exports scheme attribute on buyer item ID

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

See Also

Last updated: 27 February 2026

Share this guide:

Handle UBL-CR-667 Automatically in Your Pipeline

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