DE-R-028: If both supplier and customer are located in Germany, "Seller contact email address"…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[DE-R-028]-If both supplier and customer are located in Germany, "Seller contact email address" (BT-43) should contain exactly one @-sign, which should not be framed by a whitespace or a dot but by at least two characters on each side. A dot should not be the first or last character.
matches(normalize-space(cbc:ElectronicMail), $XR-EMAIL-REGEX)DE-R-028 is a warning rule in the country layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is flagged but not rejected. It refers to BT-43.
What this rule requires
The rule is an advisory warning (severity warning), not a rejection, checked only on UBL invoices and credit notes where the accounting supplier party country and accounting customer party country are each DE. It applies to cbc:ElectronicMail in cac:AccountingSupplierParty/cac:Party/cac:Contact (the seller contact email address, BT-43). The value is normalized by normalize-space() and must match $XR-EMAIL-REGEX = ^[^@\s]+@([^@.\s]+\.)+[^@.\s]+$. That regex requires exactly one @, no whitespace, a non-empty local part before @, and a domain with at least one dot between non-empty labels that contain no @, ., or whitespace. The message additionally describes constraints such as at least two characters on each side of @ and no dot framing @, but those are not all enforced by the regex test; the regex is what the validator actually checks.
How to fix
Set cbc:ElectronicMail to a value that matches the regex, e.g. name@example.com. Ensure the value uses exactly one @, contains no whitespace, and the part after @ has at least one dot and no empty labels (so the value cannot start or end with a dot after @). If the current value looks like an email but triggers this warning, check for hidden whitespace inside it, multiple @, or a domain without a dot. Because this is a warning, the invoice is not rejected.
Guidance on this rule. The original text above is authoritative.
Where to go next
DE-R-028 changed in 2 published Peppol BIS Billing UBL release comparisons:
- DE-R-028 in 3.0.20 → 3.0.21: Behaviour changed without the rule changing
- DE-R-028 in 3.0.17 → 3.0.18: New rule
Validate an invoice against these rules · All release changes