Disallowed country identifier

Error FX-SCH-A-000902 Factur-X

Value of 'ram:CountryID' is not allowed.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The value of ram:CountryID is not included in the applicable code list. An empty value is allowed by the test condition.

What the rule means

ram:CountryID identifies the country of the postal address of the invoicer’s legal organization. A disallowed country identifier can prevent the country from being classified correctly.

Please use an allowed country identifier for the organization’s address

The country identifier in the postal address of the invoicer’s legal organization is not in the applicable code list. An allowed value makes it possible to classify the country correctly.

What to do
  1. Locate ram:CountryID in the postal address under the invoicer’s ram:SpecifiedLegalOrganization.
  2. Compare its content with the country identifiers allowed for this field.
  3. Generate the invoice again and validate it once more.
Technical details

The test checks whether the value read from ram:CountryID is empty or occurs in the code list identified by 10.

Where the rule applies

The rule applies to ram:CountryID in the postal address of the invoicer’s legal organization.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:InvoicerTradeParty/ram:SpecifiedLegalOrganization/ram:PostalTradeAddress/ ram:CountryID
Test expression (assert/@test)
string-length($codeValue10)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=10]/enumeration[@value=$codeValue10]