web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

PEPPOL Billing 3.0 - Error message concerning unitCodeListID

(0) ShareShare
ReportReport
Posted on by 270

Hello

I am trying to validate an XML file for use in Peppol Billing 3.0. It is for a Swedich company.

The error message is this

UBL 2.1 Invoice
The content "unitCodeListID" of element <InvoicedQuantity> does not match the required simple type.
Cannot convert string to decimal: unitCodeListID; Line#: -1; Column#: -1

I have this as content

<cbc:InvoicedQuantity unitCode="13" unitCodeListID="UNECERec20">unitCodeListID</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="SEK">150.00</cbc:LineExtensionAmount>
<cac:OrderLineReference>
<cbc:LineID>1859331526.0000000000</cbc:LineID>
</cac:OrderLineReference>
<cac:Item>
<cbc:Description>Youth Accessory Combo Set</cbc:Description>
<cbc:Name>Youth Accessory Combo Set</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>0001</cbc:ID>
</cac:SellersItemIdentification>
<cac:ClassifiedTaxCategory>
<cbc:ID schemeAgencyID="6">S</cbc:ID>
<cbc:Percent>25.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeID="UN/ECE 5135" schemeAgencyID="6">VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="SEK">150</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="13" unitCodeListID="UNECERec20">1</cbc:BaseQuantity>
</cac:Price>
</cac:InvoiceLine>


I am thinking that I am using the wrong unit code here. 13 might be something else.


I have the same question (0)
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,684 Super User 2025 Season 2 on at

    Hi Kristina,

    You need to use standard unit codes that can be validated via PEPPOL.

    Link for UNECERec20 units: docs.peppol.eu/.../

    In order to fulfil this, you need to add "External codes" for the units:

    pastedimage1670538315304v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans