Allowed country value for the seller's postal address

Error FX-SCH-A-001050 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 empty and does not appear in the code list specified for countries.

What the rule means

ram:CountryID identifies the country of the seller's postal address. A value that is not allowed cannot be unambiguously assigned to a country entry.

Please use an allowed country value in the seller's postal address

The value in ram:CountryID in the seller's postal address is not included in the specified code list. You can adjust the value or leave it empty.

What to do
  1. Locate ram:CountryID in the seller's postal address for the item.
  2. Check whether its value appears in the code list allowed for countries.
  3. Leave the value empty if you do not want to provide a country value.
  4. Generate the invoice again and validate it.
Technical details

The test passes if the checked code value is empty or appears in the code list with identifier 10.

Where the rule applies

The rule applies to ram:CountryID in the postal address of the seller of an item in an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeAgreement/ram:ItemSellerTradeParty/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]