All error codes › GR-R-001-4
GR-R-001-4 – When Supplier is Greek, the Invoice Id third segment must be a positive integer
ErrorpeppolPeppol only
What the rule says
When Supplier is Greek, the Invoice Id third segment must be a positive integer
How to fix it
Fill in or correct the fields named in the rule (the BT/BG codes tell you which). The test below shows exactly what is checked in the XML. Quickest: validate the invoice to get the exact location and, for amounts, the correct value.
Paste the XML and see every error with the exact fix and the correct amounts.
Where it is checked in the XML
Context: /ubl-invoice:Invoice/cbc:ID[$isGreekSender] | /ubl-creditnote:CreditNote/cbc:ID[$isGreekSender]
Test (XPath):
string-length(normalize-space($IdSegments[3]))>0 and string(number($IdSegments[3])) != 'NaN' and xs:integer($IdSegments[3]) >= 0
Related rules
GR-R-001-1When the Supplier is Greek, the Invoice Id should consist of 6 segmentsGR-R-001-2When the Supplier is Greek, the Invoice Id first segment must be a valid TIN Number and…GR-R-001-3When the Supplier is Greek, the Invoice Id second segment must be a valid Date that…GR-R-001-5When Supplier is Greek, the Invoice Id in the fourth segment must be a valid greek…GR-R-001-6When Supplier is Greek, the Invoice Id fifth segment must not be emptyGR-R-001-7When Supplier is Greek, the Invoice Id sixth segment must not be empty