PEPPOL-EN16931-F001: A date MUST be formatted YYYY-MM-DD
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[PEPPOL-EN16931-F001]-A date MUST be formatted YYYY-MM-DD.
string-length(text()) = 10 and (string(.) castable as xs:date)PEPPOL-EN16931-F001 is a fatal rule in the format layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
This fatal rule applies to the UBL date elements cbc:IssueDate, cbc:DueDate, cbc:TaxPointDate, cbc:StartDate, cbc:EndDate, and cbc:ActualDeliveryDate. The element’s text content must have exactly 10 characters and must be castable as xs:date; in practice it must be a valid calendar date in the format YYYY-MM-DD (four-digit year, zero-padded two-digit month and day), with no extra whitespace. An invoice is rejected if any of these date values is not exactly in that form.
How to fix
Change the failing date element to a valid YYYY-MM-DD date, e.g. 2023-04-01. Ensure the producing system outputs these dates with a four-digit year, two-digit month, and two-digit day, and does not add leading/trailing spaces or use other separators. Check all listed date elements, because any one that violates the pattern will trigger the fatal error.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to PEPPOL-EN16931-F001.
Validate an invoice against these rules · All release changes