Use an allowed country code for the seller

Error FX-SCH-A-000777 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 CountryID in the seller’s postal address is not included in the allowed value list.

What the rule means

CountryID identifies the country of the seller’s address. The rule requires a value from the list provided for this element.

Please use an allowed country code for the seller’s address

The value of CountryID in the seller’s address is not allowed. Replace it with a value from the list provided for this element.

What to do
  1. Locate CountryID in the seller’s PostalTradeAddress.
  2. Compare its value with the list provided for this element.
  3. Replace the value if it is not included in that list.
  4. Generate the invoice again and validate it.
Technical details

The value of CountryID must occur in code list 10 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to CountryID in the seller’s postal address (PostalTradeAddress).

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