GR-R-001-5
When Supplier is Greek, the Invoice Id in the fourth segment must be a valid greek document type
What does this rule mean?
The invoice number of a Greek seller must carry a valid Greek document type in its fourth segment.
Greece encodes the invoice number structurally so myDATA can attribute it without further data.
Official rule message (standard)
When Supplier is Greek, the Invoice Id in the fourth segment must be a valid greek document type
Where the rule applies
Syntax: UBL
Affected element (XPath):
/ubl-invoice:Invoice/cbc:ID[$isGreekSender] | /ubl-creditnote:CreditNote/cbc:ID[$isGreekSender]
Technical test
The rule passes when this Schematron expression holds true:
string-length(normalize-space($IdSegments[4]))>0 and (some $c in $greekDocumentType satisfies $IdSegments[4] = $c)How to fix it
A missing or incorrect business entry only you can supply. Add or correct it, then re-check.
Build the invoice number following the Greek segment scheme.
Correct the affected entry in your XML, then re-check the invoice. Validation runs locally in your browser — your file never leaves your machine.
Check an e-invoice here
Drop an XML or ZUGFeRD PDF file here. Validation runs locally in your browser against EN 16931 — your file never leaves your machine.