IN-UNIT-CODES:Unit of measure codes validation
Unit codes should be from UN/ECE Recommendation 20
Engine Classification
Financial or legal field · Modification blocked by policy
Reason: Unit of measure codes must match your product catalog and trading partner agreements. Invalid codes may indicate data mapping issues.
What is IN-UNIT-CODES?
IN-UNIT-CODES is a info validation rule defined in the Peppol BIS 3.0 specification. It validates the Name element under Party > PartyName in the UBL invoice XML.
This rule flags a potential compliance issue that should be reviewed. While it may not block transmission, correcting it improves interoperability and audit readiness.
Target path: XPath: /Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name
Why This Error Matters
Seller identification required.
While IN-UNIT-CODES does not block transmission, ignoring it degrades your invoice quality score. Receivers and tax authorities increasingly use these signals to flag suppliers for manual review.
Validator Behavior
- ·Rejected by PEPPOL Access Points
- ·Error returned: IN-UNIT-CODES
- ·Specification: Peppol BIS 3.0
How to Fix It
Add PartyName
Under seller Party
Include Name
Legal company name
Before / After
<cbc:InvoicedQuantity> <@unitCode>INVALID_CODE</@unitCode> </cbc:InvoicedQuantity>
<cbc:InvoicedQuantity> <@unitCode>VALID_CODE</@unitCode> </cbc:InvoicedQuantity>
Technical Reference
XPath: /Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:NameCommon Causes
- ·Missing PartyName
- ·Empty name
Seeing this in production? The API handles IN-UNIT-CODES automatically. See the fix response →
Frequently Asked Questions
Seller party must have name specified.
Update the `@unitCode` element to use a value from the allowed code list. Check the `cac:InvoiceLine/cbc:InvoicedQuantity/@unitCode` element. This error involves a protected field — Invoice Navigator flags it in your pipeline so your team can correct it at the source.
Yes, PEPPOL-EN16931-R009 is a critical error that must be fixed.
Related Content
Last updated: 3 March 2026
Detect IN-UNIT-CODES Before Submission
This error involves a financial or legal field that cannot be auto-modified. The compliance engine flags it immediately with a clear diagnosis so your team can fix it at the source.